]> git.street.me.uk Git - andy/viking.git/blame - test/test_md5_hash.c
Some spelling fixes in a comment
[andy/viking.git] / test / test_md5_hash.c
CommitLineData
7e7854e8 1// Copyright: CC0
bd27baa4
RN
2// Print md5 hash of the given string
3#include <glib.h>
4#include <glib/gstdio.h>
5#include "md5_hash.h"
6
7int main(int argc, char *argv[])
8{
9#if !GLIB_CHECK_VERSION(2,36,0)
10 g_type_init ();
11#endif
12
13 if ( !argv[1] ) {
14 g_printerr ( "Nothing specified\n" );
15 return 1;
16 }
17
18 gchar *hash = md5_hash ( argv[1] );
19 g_printf ( "%s\n", hash );
20 g_free ( hash );
21
22 return 0;
23}
24