Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
#include <string.h>
Go to the source code of this file.
Functions | |
char * | strcpy (char *__restrict dst, const char *__restrict src) |
Copies the null-terminated byte string pointed to by src to the character array whose first element is pointed to by dest. More... | |
char* strcpy | ( | char *__restrict | dst, |
const char *__restrict | src | ||
) |
Copies the null-terminated byte string pointed to by src to the character array whose first element is pointed to by dest.
Copies the null-terminated byte string pointed to by src, including the null terminator, to the character array whose first element is pointed to by dest. It may clobber the rest of the destination array with unspecified values and that the following errors are detected at runtime and call the currently installed constraint handler function: The behavior is undefined if the dest array is not large enough. The behavior is undefined if the strings overlap. The behavior is undefined if either dest is not a pointer to a character array or src is not a pointer to a null-terminated byte string. The behavior is undefined if the size of the character array pointed to by dest <= strlen(src, destsz)
dst | pointer to the character array to write to |
src | pointer to the null-terminated byte string to copy from |
Definition at line 26 of file strcpy.c.
References memcpy(), and strlen().
Referenced by strxfrm().