Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > is_ident

API Function: is_ident

Summary:
return whether a string is a valid LPC identifier

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

Prototype:
int is_ident(string str)

Can Be Called By:
Anybody

Description:

Returns true if the string consists only of uppercase or lowercase alphabetic characters, digits, and underscores. That means no whitespace, no other punctuation, no newlines and so on. Strings of this form are usable as identifiers in C and LPC.

Return Value:

1 for true, 0 for false.

Errors:
Normally none.

See Also:
is_whitespace , is_alpha , is_alphanum