Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE UChar* U_EXPORT2 u_strcpy ( UChar *  dst,
const UChar *  src 
)

Copy a ustring. Adds a null terminator.

Parameters:
dst The destination string.
src The source string.
Returns:
A pointer to dst. ICU 2.0

Definition at line 963 of file ustring.c.

{
    UChar *anchor = dst;            /* save a pointer to start of dst */

    while((*(dst++) = *(src++)) != 0) {     /* copy string 2 over              */
    }

    return anchor;
}


Generated by  Doxygen 1.6.0   Back to index