src/lib/common/string.c
/// Copy a string
///
/// The strcpy() function copies the string pointed to by \a src (including
/// the terminating null character) to the array pointed to by \a dest.  The
/// strings may not overlap, and the destination string \a dest must be large
/// enough to receive the copy.
///
/// The strcpy() function return a pointer to the destination string \a dest.
Copy a string
The strcpy() function copies the string pointed to by \a src (including
the terminating null character) to the array pointed to by \a dest.  The
strings may not overlap, and the destination string \a dest must be large
enough to receive the copy.

The strcpy() function return a pointer to the destination string \a dest.
Copy a string The strcpy () function copies the string pointed to by \ a src ( including the terminating null character ) to the array pointed to by \ a dest . The strings may not overlap and the destination string \ a dest must be large enough to receive the copy . The strcpy () function return a pointer to the destination string \ a dest .
char *
strcpy(char *dest, const char *src)
{
    char *rv = dest;
    while (*src) {
        *dest++ = *src++;
    }
    *dest = '\0';
    return rv;
}
char * strcpy ( char * dest , const char * src ) { char * rv = dest ; while ( * src ) { * dest ++ = * src ++ ; } * dest = ' \0 ' ; return rv ; }
Copy a string
The strcpy() function copies the string pointed to by \a src (including
the terminating null character) to the array pointed to by \a dest.
Copy a string The strcpy () function copies the string pointed to by \ a src ( including the terminating null character ) to the array pointed to by \ a dest .