mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
initial import
This commit is contained in:
13
manual/examples/stpcpy.c
Normal file
13
manual/examples/stpcpy.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user