Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    char *strcpy( char *dst, const char *src );
    char __far *_fstrcpy( char __far *dst,
                          const char __far *src );

Description:
    The strcpy and _fstrcpy functions copy the string pointed to by src
    (including the terminating null character) into the array pointed to by
    dst.  Copying of overlapping objects is not guaranteed to work properly.
     See the description for the  memmove function to copy objects that
    overlap.

    The _fstrcpy function is a data model independent form of the strcpy
    function.  It accepts far pointer arguments and returns a far pointer.
     It is most useful in mixed memory model applications.

Returns:
    The value of dst is returned.

See Also:
    strdup, _fstrdup, strncpy, _fstrncpy

Example:
    #include <stdio.h>
    #include <string.h>

    void main()
      {
        auto char buffer[80];

        strcpy( buffer, "Hello " );
        strcat( buffer, "world" );
        printf( "%s\n", buffer );
      }

    produces the following:

    Hello world

Classification:
    strcpy is ANSI, _fstrcpy is not ANSI

Systems:
     strcpy - All

    _fstrcpy - All

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