#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <md5.h>
unsigned char *data = malloc(10);
char ret[33];
- strlcpy(data, "123456789", 10);
+ strlcpy((char *)data, "123456789", 10);
MD5Init(&ctx);
MD5Data(data, sizeof data, ret);
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <rmd160.h>
unsigned char *data = malloc(10);
char ret[32];
- strlcpy(data, "123456789", 10);
+ strlcpy((char *)data, "123456789", 10);
RMD160Init(&ctx);
RMD160Data(data, sizeof data, ret);