glibc/manual/examples/stpcpy.c

14 lines
183 B
C
Raw Normal View History

1995-02-18 02:27:10 +01:00
#include <string.h>
#include <stdio.h>
int
main (void)
{
char buffer[10];
char *to = buffer;
to = stpcpy (to, "foo");
to = stpcpy (to, "bar");
puts (buffer);
return 0;
}