Colobot Wiki
Advertisement

Extracts the last (that is, rightmost) characters from a string.

Syntax:

strright ( string, len );

len: int[]

Number of characters to be extracted.

Examples:

	string s = strright("abcdef", 2);  // s is "ef"
	string s = strright("abc", 10);  // s is "abc"


See also[]

strlen, strleft, strmid, strfind, strval, strupper, strlower

Programming, types, and categories.

Advertisement