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

U_STABLE UChar* U_EXPORT2 u_memset ( UChar *  dest,
UChar  c,
int32_t  count 
)

Initialize count characters of dest to c.

Parameters:
dest The destination string.
c The character to initialize the string.
count The maximum number of characters to set.
Returns:
A pointer to dest. ICU 2.0

Definition at line 1123 of file ustring.c.

                                              {
    if(count > 0) {
        UChar *ptr = dest;
        UChar *limit = dest + count;

        while (ptr < limit) {
            *(ptr++) = c;
        }
    }
    return dest;
}


Generated by  Doxygen 1.6.0   Back to index