[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    strcpy(9F) manual page Table of Contents

Name

strcpy, strncpy - copy a string from one location to another.

Synopsis

#include <sys/ddi.h>

char *strcpy(char *dst, char *srs);

char *strncpy(char *dst, char *srs, size_t n );

Interface Level

Solaris DDI specific (Solaris DDI).

Arguments

dst, srs
Pointers to character strings.
n
Count of characters to be copied.

Description

strcpy()

strcpy() copies characters in the string srs to dst, terminating at the first null character in srs, and returns dst to the caller. No bounds checking is done.

strncpy()

strncpy() copies srs to dst, null-padding or truncating at n bytes, and returns dst. No bounds checking is done.

Return Values

strcpy(), and strncpy() return dst.

Context

strcpy() can be called from user or interrupt context.

See Also


Table of Contents