1995-02-18 02:27:10 +01:00
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#define SIZE 10
|
|
|
|
|
|
|
|
static char buffer[SIZE];
|
|
|
|
|
2012-02-18 01:10:47 +01:00
|
|
|
int
|
|
|
|
main (void)
|
1995-02-18 02:27:10 +01:00
|
|
|
{
|
|
|
|
strncpy (buffer, "hello", SIZE);
|
|
|
|
puts (buffer);
|
|
|
|
strncat (buffer, ", world", SIZE - strlen (buffer) - 1);
|
|
|
|
puts (buffer);
|
|
|
|
}
|