Logo Search packages:      
Sourcecode: wvstreams version File versions

char* trim_string ( char *  string,
char  c 

Similar to above, but trims the string starting at the first occurrence of c.

Definition at line 76 of file strutils.cc.

References trim_string().

    char *p;

    if (string == NULL)
        return NULL;

    p = string;

    while (*p != 0 && *p != c)

    while (*p)
        *(p++) = 0;

    return string;

Generated by  Doxygen 1.6.0   Back to index