Browse Source

Update README.md

legacy
Marek 10 years ago
parent
commit
5858eb1d28
  1. 14
      README.md

14
README.md

@ -12,7 +12,7 @@ Class to create MD5 checksum from file or string
int main(int argc,char** argv){
char cstring[] = "To jest testowy string";
std::string str = "Bla, to jest test :)";
std::string str = "Bla, to jest test :)";
/* MD5 from std::string */
printf("md5sum: %s\n", md5sum( str ).c_str());
@ -25,9 +25,17 @@ int main(int argc,char** argv){
/* Short MD5 from c-string */
printf("md5sum6: %s\n", md5sum6( cstring ).c_str());
/* Short MD5 from std::string */
printf("md5sum6: %s\n", md5sum6( str ).c_str());
/* MD5 from opened file */
std::FILE* file = std::fopen("README.md", "rb");
printf("md5file: %s\n", md5file(file).c_str());
std::fclose(file);
/* we're done */
return EXIT_SUCCESS;
/* we're done */
return EXIT_SUCCESS;
}
```

Loading…
Cancel
Save