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

char* pa_ascii_valid ( const char *  str  ) 

Test if the specified strings qualifies as valid 7-bit ASCII. Return the string if so, otherwise NULL.

Since:
0.9.15

Definition at line 262 of file utf8.c.

                                      {
    const char *p;
    pa_assert(str);

    for (p = str; *p; p++)
        if ((unsigned char) *p >= 128)
            return NULL;

    return (char*) str;
}


Generated by  Doxygen 1.6.0   Back to index