Hello,
compiling with gcc C99
I am trying to compare 2 string using string compare. However, I seem to be getting a stack dump on the strcmp line.
**attribute will contain these, so I am looking for frametype.
[name] [time] [type] [time]
[name] [callref] [type] [string]
[name] [port] [type] [int16]
[name] [frametype] [type] [int16]
Is this correct way to compare.
Many thanks for any suggestions,
void g_start_element(void *data, const char *element, const char **attribute)
{
for(i = 0; attribute[i]; i++)
{
/* Only interested in the frametype */
if(strcmp(attribute[i], "frametype") == 0)
{
/* do some work here */
}
}
}