invalid conversion from 'char' to 'const char*'
I am writing a function, and I'm getting the error "invalid conversion from 'char' to 'const char*'" when I try to compile. Any help would be appreciated. :)
Code:
char aline[125];
char sline[125];
char lbracket[2] = "[";
char rbracket[2] = "]";
. . . .
if (strcmp(aline[0],lbracket) == 0)
. . . .
I'm reading into aline with getline(), and then attempting to analyze the first character to see if it is "[". I tried using strcmp(aline[0],"["), but got the same error.