I am working on a C project. I am new to C so forgive me if this is a simple question.
I have a char ** which is an array that contains various values. Out of all the values I have no problem what the values contain except for one where it keeps on core dumping on strcmp.
Below is my code:
if (strcmp(reportParameterArray[P_UNIQUECOLS],'Y') != 0)
{
//Do something
}
P_UNIQUECOLS is an enum which is the index of where to retrieve the value from. If I look at the value in GDB I can see that it either contains Y or N as it should but for some reason the app is crashing.
Thanks for any help you can provide.