Compare commits

...

2 commits

Author SHA1 Message Date
vedri 1d98ca27ed Update author name 2021-08-08 17:50:38 +02:00
vedri 7a18674aa6 Add blog post link 2021-08-08 17:49:10 +02:00
4 changed files with 13 additions and 4 deletions

View file

@ -1,4 +1,4 @@
## Simple Makefile by botanicals
## Simple Makefile by vedri
## Code available at https://git.disroot.org/botanicals/blog-files
# Compiler and flags

View file

@ -1,4 +1,4 @@
## Simple Makefile by botanicals
## Simple Makefile by vedri
## Code available at https://git.disroot.org/botanicals/blog-files
# Compiler and flags

View file

@ -1,5 +1,7 @@
# Compare SHA Sums
Also posted August 8th, 2021 on [Dreamwidth](https://campanilla.dreamwidth.org/4480.html).
## Idea
I wanted to practice working with files in C programs and at the same time check if the SHA sums for a Manjaro ISO file were the same.
@ -28,7 +30,14 @@ Example of `sha-test.txt`:
Append to the file a SHA sum you generated yourself.
``` sh
sha1sum ISO >> sha-test.txt
sha1sum ISO-name >> sha-test.txt
```
Resulting `sha-test.txt`:
``` txt
6ff0ebecb9813542e1fa81bbe897bb59039bb00d
6ff0ebecb9813542e1fa81bbe897bb59039bb00d ISO-name
```
Run `compare` and enter the name of the file with SHA sums when prompted.

View file

@ -1,4 +1,4 @@
/* Compare by botanicals
/* Compare by vedri
* Available at https://git.disroot.org/botanicals/blog-files
*
* This program compares two strings, each in its own line,