 | C251 User's Guide |  |
|
|
| strcpy| Summary | | | Description | The strcpy function copies characters from src to dst up to and including the terminating null character. | | Return Value | The strcpy function returns dst. | | See Also | strcat, strlen, strncat, strncpy | | Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_strcpy (void) {
strcpy (buf, s);
strcat (buf, " #2");
printf ("new string is %s\n", buf);
}
|
|
|