git.ckatri.com
/
mandoc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mandoc -a, man, apropos -a, whatis -a now paginate by default
[mandoc.git]
/
test-strcasestr.c
1
#if defined(__linux__) || defined(__MINT__)
2
# define _GNU_SOURCE
/* strcasestr() */
3
#endif
4
5
#include <string.h>
6
7
int
8
main
(
void
)
9
{
10
const char
*
big
=
"BigString"
;
11
char
*
cp
=
strcasestr
(
big
,
"Gst"
);
12
return
(
big
+
2
!=
cp
);
13
}