File: test.c

package info (click to toggle)
librnd 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,812 kB
  • sloc: ansic: 126,990; sh: 2,602; makefile: 2,145; awk: 7
file content (15 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <string.h>
#include "test_hash.h"

int main()
{
	char s[128];
	while(!(feof(stdin))) {
		*s = '\0';
		fgets(s, sizeof(s), stdin);
		s[strlen(s)-1] = '\0';
		printf("'%s' is %d is '%s'\n", s, test_sphash(s), test_keyname(test_sphash(s)));
	}
	return 0;
}