isspace

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

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

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

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.