I'm trying to complete an analexical validation but I'm facing some trouble with pointers, this is my code
case 6: c = next_carac(file);
for(handle=0;(words[handle] != "NULL");handle++)
{
strcpy(message, words[handle]);
if(!strcmp(token,message))
strcpy(message, "words");
}
if(isdigit(c) && strcmp(message,"words"))
{
step=6;
token[auxtoken]=c;
auxtoken++;
}
else if(isalpha(c) && strcmp(message,"words"))
{
step=6;
token[auxtoken]=c;
auxtoken++;
}
else
{
step=7;
return_carac(file);
}
break;
and these are the variable declared
const char *words[]={
"program",
"label",
"integer",
"word",
"char",
"byte",
"shortint",
"logint",
"real",
"single",
"double",
"string",
"boolean",
"var",
"procedure",
"function",
"begin",
"end",
"if",
"then",
"else",
"or",
"and",
"div",
"not",
"do",
"while",
"mod",
"NULL"
};
char token[80],message[30];
int step=0;
char c;
auxtoken=0;
but it is generating the following errors which I couldn't find a way to mitigate
Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. First-chance exception in Main.exe: 0xC0000005: Access Violation.
Would you know how could I fix it?