function

isspace . string . sncode

VERSIONlatest Checks whether c is a white-space character.

ISSPACE

NAME

isspace - Checks whether c is a white-space character.

SYNOPSIS

isspace("…");

DESCRIPTION

Checks whether c is a white-space character.

For the "C" locale, white-space characters are any of: ' ' (0x20) space (SPC) \t (0x09) horizontal tab (TAB) \n (0x0a) newline (LF) \v (0x0b) vertical tab (VT) \f (0x0c) feed (FF) \r (0x0d) carriage return (CR)

Other locales may consider a different selection of characters as white-spaces, but never a character that returns true for isalnum.

Iswspace operates on wide characters while isspace operates on single byte characters. If your locale is multibytes, iswspace would be the prefered solution.

EXAMPLES

if isspace(a) then
        "ok";
else
        "nok";
endif

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>