strcpy_s(szTmpStr2,72,szTmpStr);
strcat_s(szTmpStr2,72, "5"); //Make sure the strip code that follows
leaves
something
while (isspace(*szTmpStr2)) szTmpStr2++; //Error 1 error C2105: '++' needs
l-value
Make a pointer, then ++ it. For example:
char* pStart = &szTempStr2[0];
while(isSpace(*pStart)) ++pStart;
At the end, pStart is a pointer to some memory (WITHIN szTempStr2)
that has the string minus any leading spaces. Copy that off to another
buffer if you want.
Nathan Mates
--
<*> Nathan Mates - personal webpage
http://www.visi.com/~nathan/
# Programmer at Pandemic Studios --
http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein