Copy the contents of a char*-string into another, the contents of s2 will be copied into s1.
Copy the contents of a char*-string into another, the contents of s2 will be copied into s1.
| Name | Type | Default | Description |
| Return | String or char* | Parameter s1 | |
| s1 | String or char* | - | Target string |
| s2 | String or char* | - | Original string |
| startPos | int | 0 | First position to copy |
| len | int | -1 | Number of bytes to cpoy -1 : until the end of the string |
int main()
{
char * s1 = alloc(256);
strcpy(s1, "con");
strcpy(s1, "cat");
// s1 = "cat"
showmessage(s1);
release(s1);
return 0;
}
Alphabetic index HTML hierarchy of classes or Java