Syntax
long isspace( string_expr )
Description
This tests whether the result of string_expr contains only spaces or is empty.
Return values
TRUE string is empty or contains only spaces
FALSE string is not empty and contains characters other than spaces
Example
string str1(20)
if ( not isspace(str1) ) then
message( "'%s' is not empty", str1 )
endif
Related Post:
long isspace( string_expr )
Description
This tests whether the result of string_expr contains only spaces or is empty.
Return values
TRUE string is empty or contains only spaces
FALSE string is not empty and contains characters other than spaces
Example
string str1(20)
if ( not isspace(str1) ) then
message( "'%s' is not empty", str1 )
endif
Related Post:
0 comments:
Post a Comment