Colobot Wiki
Advertisement

Get the length of a string.

Syntax:

strlen ( string );

Examples:

	int len = strlen("abc");  // len is 3
	int len = strlen("");  // len is 0
	if ( strlen(s) == 0 )  // is string empty ?

See also[]

strleft, strright, strmid, strfind, strval, strupper, strlower

Programming, types, and categories.

Advertisement