/*
    Copyright (C) 1995-2025, The AROS Development Team. All rights reserved.

    C99 function strcpy().
*/

/*****************************************************************************

    NAME */
#include <string.h>

        char * strcpy (

/*  SYNOPSIS */
        char       * dest,
        const char * src)

/*  FUNCTION
        Copy a string. Works like an assignment "dest=src;".

    INPUTS
        dest - The string is copied into this variable. Make sure it is
                large enough.
        src - This is the new contents of dest.

    RESULT
        dest.

    NOTES
        No check is made that dest is large enough for src.

    EXAMPLE

    BUGS

    SEE ALSO
        strncpy(), memcpy(), memmove()

    INTERNALS

******************************************************************************/
{
    char * ptr = dest;

    while ((*ptr++ = *src++) != '\0')
        ;

    return dest;
} /* strcpy */
