Penguin
Annotated edit history of stpcpy(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 STPCPY
2 !!!STPCPY
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 EXAMPLE
8 CONFORMING TO
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 stpcpy - copy a string returning a pointer to its end
15 !!SYNOPSIS
16
17
18 __#include
19 __''dest''__, const char *__''src''__);
20 __
21 !!DESCRIPTION
22
23
24 The __stpcpy()__ function copies the string pointed to by
25 ''src'' (including the terminating `0' character) to the
26 array pointed to by ''dest''. The strings may not
27 overlap, and the destination string ''dest'' must be
28 large enough to receive the copy.
29 !!RETURN VALUE
30
31
32 __stpcpy()__ returns a pointer to the __end__ of the
33 string ''dest'' (that is, the address of the terminating
34 null character) rather than the beginning.
35 !!EXAMPLE
36
37
38 For example, this program uses __stpcpy__ to concatenate
39 __foo__ and __bar__ to produce __foobar__, which it
40 then prints.
41
42
43 #include
44 !!CONFORMING TO
45
46
47 This function is not part of the ANSI or POSIX standards,
48 and is not customary on Unix systems, but is not a GNU
49 invention either. Perhaps it comes from MS-DOS.
50 !!SEE ALSO
51
52
53 strcpy(3), bcopy(3), memccpy(3),
54 memcpy(3), memmove(3)
55 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.