1*b0543bd2SAxel Dörfler /*
2*b0543bd2SAxel Dörfler * Copyright 2008, Axel Dörfler, axeld@pinc-software.de.
3*b0543bd2SAxel Dörfler * Distributed under the terms of the MIT license.
4*b0543bd2SAxel Dörfler */
5*b0543bd2SAxel Dörfler
6*b0543bd2SAxel Dörfler
7*b0543bd2SAxel Dörfler #include <stdio.h>
8*b0543bd2SAxel Dörfler #include <string.h>
9*b0543bd2SAxel Dörfler
10*b0543bd2SAxel Dörfler
11*b0543bd2SAxel Dörfler int
main(int argc,char ** argv)12*b0543bd2SAxel Dörfler main(int argc, char** argv)
13*b0543bd2SAxel Dörfler {
14*b0543bd2SAxel Dörfler char a[] = { -26, '\0' };
15*b0543bd2SAxel Dörfler char b[] = { '.', '\0' };
16*b0543bd2SAxel Dörfler
17*b0543bd2SAxel Dörfler printf("strcmp(): %d\n", strcmp(a, b));
18*b0543bd2SAxel Dörfler printf("memcmp(): %d\n", memcmp(a, b, 1));
19*b0543bd2SAxel Dörfler printf("strncmp(): %d\n", strncmp(a, b, 1));
20*b0543bd2SAxel Dörfler printf("strcasecmp(): %d\n", strcasecmp(a, b));
21*b0543bd2SAxel Dörfler printf("strncasecmp(): %d\n", strncasecmp(a, b, 1));
22*b0543bd2SAxel Dörfler
23*b0543bd2SAxel Dörfler return 0;
24*b0543bd2SAxel Dörfler }
25