Searched refs:str_input (Results 1 – 1 of 1) sorted by relevance
793 char str_input[5]; in confirm_yesno() local799 while (i < sizeof(str_input)) { in confirm_yesno()800 str_input[i] = getchar(); in confirm_yesno()801 putc(str_input[i]); in confirm_yesno()802 if (str_input[i] == '\r') in confirm_yesno()807 if (strncmp(str_input, "y\r", 2) == 0 || in confirm_yesno()808 strncmp(str_input, "Y\r", 2) == 0 || in confirm_yesno()809 strncmp(str_input, "yes\r", 4) == 0 || in confirm_yesno()810 strncmp(str_input, "YES\r", 4) == 0) in confirm_yesno()
Completed in 4 milliseconds