summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs/gcc-bounds/md-5.c
blob: e1d0538b106b641db31cc8581904e954c62448f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <rmd160.h>

int
main(int argc, char **argv)
{
	RMD160_CTX ctx;
	unsigned char *data = malloc(10);
	char ret[32];

	strlcpy(data, "123456789", 10);

	RMD160Init(&ctx);
	RMD160Data(data, sizeof data, ret);
	printf("%s\n", ret);
}