* sysdeps/mach/hurd/i386/tls.h (THREAD_DTV): Changed type of _DTV
[glibc.git] / manual / examples / strncat.c
blobf865167f4affde1d543c7fd9c6afa50aae33c659
1 #include <string.h>
2 #include <stdio.h>
4 #define SIZE 10
6 static char buffer[SIZE];
8 main ()
10 strncpy (buffer, "hello", SIZE);
11 puts (buffer);
12 strncat (buffer, ", world", SIZE - strlen (buffer) - 1);
13 puts (buffer);