int strlen( string str );
strlen() returns the number of characters in the string 'str'.
See also: sizeof
Beek @ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere