diff options
Diffstat (limited to 'libc/manual/examples/stpcpy.c')
-rw-r--r-- | libc/manual/examples/stpcpy.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/manual/examples/stpcpy.c b/libc/manual/examples/stpcpy.c new file mode 100644 index 000000000..b83226354 --- /dev/null +++ b/libc/manual/examples/stpcpy.c @@ -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; +} |