4.2.40 substr

string substr(const char *s, int index)
string substr(const char *s, int index, int length)

The substr function returns the substring of the s, string, starting at the index position. If length is specified, substr limits the substring to that length.