programming.nbk: Home | Index | Next Page: strdup(const char *s1) | Previous Page: strchr(char *str, int character)


 strcpy(char *s1, const char *s2)

Description

The strcpy() function copies the string pointed to by s2 (including the terminating null character) into the array pointed to by s1. If copying occurs between objects that overlap, the behavior is undefined.

The function strcpy() does not allocate any storage. The caller must insure that the buffer pointed to by s1 is long enough to hold string s2 and its terminating null character.

Syntax

Parameters

Return Values

The strcpy() function returns the value of s1.


programming.nbk: Home | Index | Next Page: strdup(const char *s1) | Previous Page: strchr(char *str, int character)


Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time