Personally, I would initialise read_ok to 0 and return_val to NULL, even though they are correctly given initial values within the loop body. prompt should be a const char*. I would prefer strchr to strstr here. (Nominal Animal's strcspn idea does not fit quite as well into your current logic, methinks.) Oh, and all those extra blank lines make me![]()



1Likes
LinkBack URL
About LinkBacks




