☰
Debian Codegraph
@
2.12-1
2.11-1
/
/
inc
/
probe
/
strnlen.c
☽
☼
inc/probe/strnlen.c
code
plain
raw
Artistic
or
GPL-1+
2015-2022, Graham Ollis <
[email protected]
>
debian/copyright
1
#include <string.h>
2
3
int
4
dlmain(int argc, char *arg[])
5
{
6
const char *test = "123456789\0";
7
8
if(strnlen(test, 100) == 9 && strnlen(test, 4) == 4)
9
return 0;
10
else
11
return 2;
12
}