COHERENT manpages

This page displays the COHERENT manpage for strcpy() [Copy one string into another].

List of available manpages
Index


strcpy() -- String Function (libc)

Copy one string into another
#include <string.h>
char *strcpy(string1, string2)
char *string1, *string2;

strcpy() copies the contents of string2,  up to the NUL, into the memory to
which string1 points.  It returns string1.

Example

See string.

See Also

libc,
memcpy(),
string.h,
strncpy()
ANSI Standard, §7.11.2.3
POSIX Standard, §8.1

Notes

string1 must point  to enough space to hold string2,  or another portion of
the program or operating system may be overwritten.