Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>stpcpy() copy one string into another</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 stpcpy()                Copy One String into Another

 #include   <string.h>

 char       *stpcpy(string1,string2);
 char       *string1;  Destination string
 const char *string2;  Source string

    stpcpy() copies the source string 'string2' into the destination
    string, 'string1'.  stpcpy() stops when it encounters the null
    character in 'string2'.

       Returns:     A pointer to 'string1' plus the length of the source
                    string, 'string2'.

         Notes:     stpcpy() is the same as strcpy(), except that
                    strcpy() does not return the length of the source
                    string.


See Also: strcpy()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson