Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->strcpy()

Summary

#include <string.h>

    
char *strcpy(char* string1, const char* string2);Copy one string to another

Parameters

    
string1Destination string
string2Source string

Description

This function copies string2 into string1.

Both string1 and string2 must be null terminated strings.


Return Value

The pointer to string1 is returned.