Copy a string.
char* __fastcall__ strcpy (char* s1, const char* s2);
strcpyfunction copies the string pointed to by
s2(including the terminating null byte) into the array pointed to by
s1. The function will always return
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- If copying takes place between objects that overlap, the behaviour is undefined.
- See also
strcat, strncat, strncpy
#include <string.h> static char hello; strcpy (hello, "Hello world!\n");