repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(ptrace) [PTRACE_TRACEME]: Notify the proc server that we are now traced.
[glibc.git]
/
manual
/
examples
/
strncat.c
blob
f865167f4affde1d543c7fd9c6afa50aae33c659
1
#include <string.h>
2
#include <stdio.h>
3
4
#define SIZE 10
5
6
static char
buffer
[
SIZE
];
7
8
main
()
9
{
10
strncpy
(
buffer
,
"hello"
,
SIZE
);
11
puts
(
buffer
);
12
strncat
(
buffer
,
", world"
,
SIZE
-
strlen
(
buffer
) -
1
);
13
puts
(
buffer
);
14
}