isspace3
White-space character test
Usage
#include <ctype.h>
int
isspace(int c);
int
isspace_l(int c, locale_t loc);
Library
Standard C Library (libc, -lc)
Overview
The isspace() and isspace_l() functions test for white-space characters. For any locale, this includes the following standard characters:
| ``\t'' | ``\n'' | ``\v'' | ``\f'' | ``\r'' | `` '' |
In the "C" locale, isspace() and isspace_l() return non-zero for these characters only. The value of the argument must be representable as an unsigned char or the value of EOF.
The isspace_l() function takes an explicit locale argument, whereas the isspace() function uses the current global or per-thread locale.
Return values
The isspace() and isspace_l() functions return zero if the character tests false and return non-zero if the character tests true.
Compatibility
The 4.4BSD extension of accepting arguments outside of the range of the unsigned char type in locales with large character sets is considered obsolete and may not be supported in future releases. The iswspace() or iswspace_l() function should be used instead.
Releases
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 45 times.