repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove building with NOCRYPTO option
[minix.git]
/
external
/
bsd
/
mdocml
/
dist
/
test-strlcat.c
blob
b74ce6f4f8f38920eefc004afdc9b6c2d4a011d1
1
#include <string.h>
2
3
int
4
main
(
void
)
5
{
6
char
buf
[
3
] =
"a"
;
7
return
( ! (
2
==
strlcat
(
buf
,
"b"
,
sizeof
(
buf
)) &&
8
'a'
==
buf
[
0
] &&
'b'
==
buf
[
1
] &&
'\0'
==
buf
[
2
]));
9
}