Technical Support
On-Line Manuals
C166 User's Guide
#include <string.h> signed char *strcpy ( signed char *dst, /* destination string */ const signed char *src); /* source string */
The strcpy function copies characters from src to dst up to and including the terminating null character.
The strcpy function returns dst.
strcat, strlen, strncat, strncpy
#include <string.h> #include <stdio.h> /* for printf */ void tst_strcpy (void) { char buf [21]; char s [] = "Test String"; strcpy (buf, s); strcat (buf, " #2"); printf ("new string is %s\n", buf); }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.