Ok, i should know this but i can't remember the function
How do i compare 2 strings to test whether they are equal?Code:char name[20] = "Bob"; if (name == "Bob"){ // Invalid, need real funtion printf("true"); }
Ok, i should know this but i can't remember the function
How do i compare 2 strings to test whether they are equal?Code:char name[20] = "Bob"; if (name == "Bob"){ // Invalid, need real funtion printf("true"); }
Those who live by the sword get shot by those who don't.
I can C.
Compiler: gcc