diff options
author | Roland McGrath <roland@gnu.org> | 1992-10-16 23:28:56 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-10-16 23:28:56 +0000 |
commit | 297e5634aec6d3947bcc9549298d0a08af91adf2 (patch) | |
tree | 2152b40b2b8d8c654a8fdfebf9e618faeeb71e9e /manual/examples | |
parent | b73dd44b92548190736214a16c07f40e4f4c9ee8 (diff) |
Initial revision
Diffstat (limited to 'manual/examples')
-rw-r--r-- | manual/examples/stpcpy.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/manual/examples/stpcpy.c b/manual/examples/stpcpy.c new file mode 100644 index 0000000000..bbacd9a404 --- /dev/null +++ b/manual/examples/stpcpy.c @@ -0,0 +1,10 @@ +#include <string.h> + +int +main (void) +{ + char *to = buffer; + to = stpcpy (to, "foo"); + to = stpcpy (to, "bar"); + printf ("%s\n", buffer); +} |