Get a character in a string. if the string is shorter, return -1.

Call:

int strposcharget(string sourcestr, int ipos, char &charres);