Initial revision
authorroland <roland>
Fri, 16 Oct 1992 23:28:56 +0000 (23:28 +0000)
committerroland <roland>
Fri, 16 Oct 1992 23:28:56 +0000 (23:28 +0000)
manual/examples/stpcpy.c [new file with mode: 0644]

diff --git a/manual/examples/stpcpy.c b/manual/examples/stpcpy.c
new file mode 100644 (file)
index 0000000..bbacd9a
--- /dev/null
@@ -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);
+}