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

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

Concatenate two ustrings. Appends a copy of src, including the null terminator, to dst. The initial copied character from src overwrites the null terminator in dst.

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

Definition at line 624 of file ustring.c.

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

    while(*dst != 0) {              /* To end of first string          */
        ++dst;
    }
    while((*(dst++) = *(src++)) != 0) {     /* copy string 2 over              */
    }

    return anchor;
}


Generated by  Doxygen 1.6.0   Back to index