aboutsummaryrefslogtreecommitdiff
path: root/manual/examples/stpcpy.c
blob: b83226354ba96b886ffd431b326d0d2ea9837b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}