if (condition) statement1 else statement2
How do I say, if what the user typed in equals the string that I want it to equal then execute the function.
Thanks,
-Nos
if (condition) statement1 else statement2
How do I say, if what the user typed in equals the string that I want it to equal then execute the function.
Thanks,
-Nos
Use strcmp() to compare strings.
Code:char a[] = "nosfearatu" ; char b[] = "nesfearatu" ; if ( strcmp( a, b ) == 0) match_func() ; // true else nomatch_func() ;
Mainframe assembler programmer by trade. C coder when I can.
Thanks.