git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added -C option to enable running on more than 1 node
[tridge/junkcode.git]
/
strnlen-test.c
1
#include <stdio.h>
2
#include <string.h>
3
4
int main(void)
5
{
6
char *test = "1234567890";
7
int i;
8
for (i=0;i<9;i++) {
9
printf("%d\n", strnlen(test,i));
10
}
11
return 0;
12
}