Manual Page Result
0
Command: strcpy | Section: 3 | Source: OpenBSD | File: strcpy.3
STRCPY(3) FreeBSD Library Functions Manual STRCPY(3)
NAME
strcpy - copy a string without bounds checking
SYNOPSIS
#include <string.h>
char *
strcpy(char *dst, const char *src);
DESCRIPTION
The strcpy() function copies the string src (including the terminating
`\0' character) to the buffer dst.
No bounds checking is performed. If the buffer dst is not large enough
to hold the result, subsequent memory will be damaged.
If the src string is inside the dst buffer, the behavior is undefined.
RETURN VALUES
The strcpy() function returns dst.
SEE ALSO
strlcpy(3), wcscpy(3), wcslcpy(3)
STANDARDS
The strcpy() function conforms to ANSI X3.159-1989 ("ANSI C89").
HISTORY
The strcpy() function first appeared outside of Bell Labs in PWB/UNIX
1.0.
FreeBSD 14.1-RELEASE-p8 August 1, 2022 FreeBSD 14.1-RELEASE-p8