Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > is_alphanum

API Function: is_alphanum

Summary:
return whether a string is entirely alphanumeric

Defined In LPC Object:
/usr/common/sys/stringd.c

Prototype:
int is_alphanum(string str)

Can Be Called By:
Anybody

Description:

Returns true if the string consists only of uppercase or lowercase alphabetic characters and digits. That means no whitespace, no punctuation, no newlines and so on.

Return Value:

1 for true, 0 for false.

Errors:
Normally none.

See Also:
is_whitespace , is_alpha , is_ident