[vlc-devel] [PATCH] Support for Http Dynamic Streaming
Rémi Denis-Courmont
remi at remlab.net
Mon Jun 16 17:42:46 CEST 2014
Le 2014-06-14 17:02, Jean-Baptiste Kempf a écrit :
>> +/* this only works with ANSI characters - this is ok
>> + for the bootstrapinfo field which this function is
>> + exclusively used for since it is merely a base64 encoding
>> +*/
>> +static bool is_whitespace( char c )
>> +{
>> + return ( ' ' == c ||
>> + '\t' == c ||
>> + '\n' == c ||
>> + '\v' == c ||
>> + '\f' == c ||
>> + '\r' == c );
>> +}
>
> How is that different from isspace(c) ?
They are the same *if* the locale is C or POSIX.
Could use strchr() though.
--
Rémi Denis-Courmont
More information about the vlc-devel
mailing list