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