This is the syntax of strcmp:Originally posted by RealityFusion
I don't know what you mean by this statement:
"In your ocde timecheck is a char, strcmp used char* as arguments."
Please explain.Code:if (!strcmp("daily",timecheck))
int strcmp( const char *str1, const char *str2 );
you used something like
int strcmp( const char *str1, const char str2 );
notice the last arg isnt a pointer but a single char.