[ad_1]
This compares the pointers, not the contents.
You need to use strcmp:
if(strcmp("SRAD", name) == 0)
1
[ad_2]
solved const char* if() comparison with “SRAD” returns false [duplicate]
[ad_1]
This compares the pointers, not the contents.
You need to use strcmp:
if(strcmp("SRAD", name) == 0)
1
[ad_2]
solved const char* if() comparison with “SRAD” returns false [duplicate]