SysTutorials

Man Pages › Section 3

strcpy(3)

strcpy, strncpy – copy a string

Synopsis

#include <string.h>

char *strcpy(char *dest, const char *src);

char *strncpy(char *dest, const char *src, size_t n);

Description

The strcpy() function copies the string pointed to by src, including the terminating null byte (‘