Hey there! Something Wicked has turned up here with me... Guaranteed to be
"nothing", and I'm gonna be embarrassed when I find out what is wrong, but I
think I have stared myself blind on my own code.
Why the @**@ does this stop with an Access Violation on the marked line???
and:
_Is_ there a point of using "static" on lexxBuffer (wta performance), or
should I remove it?
#define BUFFERLEN 256
BOOL IsFLOAT(LPCSTR token)
{
static CHAR lexxBuffer[BUFFERLEN];
INT strLen = strlen(token);
if (strLen == 0)
return FALSE;
if (strLen >= BUFFERLEN)
return FALSE;
strcpy(lexxBuffer, token);
LPSTR strTok[2];
strTok[0] = lexxBuffer;
strTok[1] = strchr(token, '.');
if (strTok[1] == NULL)
return FALSE;
if (strTok[1][1] == NULL)
return FALSE;
strTok[1][0] = 0; // <----------------------HERE
strTok[1]++;
/*
if (!IsINT(strTok[0]))
return FALSE;
if (!IsUINT(strTok[1]))
return FALSE;
*/
return TRUE;
}