The value for length must be positive, otherwise an empty string will be returned. If length is ommitted, the rest of the string (beginning at start) is returned.
If start points to a position outside the string, an empty string is returned.
string s = "This is a string"; string t = strsub(s, 4, 7); printf("The extracted substring is: %s\n", t);
Index | Copyright © 2005 CadSoft Computer GmbH |