Sorry in advance for the ignorance. I don\'t fully understand how to compare char arrays in C. I was originally comparing two char arrays in c with the simple ==
if(a == b) will compare the addresses stored in a and b pointers.
strcmp(a, b) will compare character by character of the contents stored at a and b addresses. It returns 0 if both contents are same (case sensitive). otherwise difference in ASCII values of the characters
if(*a == *b) will compare the first characters (i.e. char at 0th position) of both array.
Hope it helps !!