chiark / gitweb /
add legal information including clear copyright grant
[subdirmk.git] / lib / t / toytest.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4
5 #include "toylib.h"
6
7 int main(void)
8 {
9   const char *p;
10
11   p = greeting();
12   if (STRNCMP(p, !=, "Hello", 5)) {
13     fprintf(stderr, "greeting `%s' has bad salutation\n", p);
14     exit(1);
15   }
16   printf("all ok\n");
17   return (0);
18 }