Lines Matching defs:answer

1264 /* Ask user a y-or-n question and return 1 iff answer is yes.
1267 It should not say how to answer, because we do that. */
1274 int answer;
1285 /* Automatically answer "yes" if input is not from a terminal. */
1306 answer = fgetc (stdin);
1308 if (answer == EOF) /* C-d */
1314 if (answer != '\n')
1322 if (answer >= 'a')
1323 answer -= 040;
1324 if (answer == 'Y')
1329 if (answer == 'N')
1334 printf_filtered ("Please answer y or n.\n");
1345 Ask user a y-or-n question and return 0 if answer is no, 1 if
1346 answer is yes, or default the answer to the specified default.
1347 DEFCHAR is either 'y' or 'n' and refers to the default answer.
1349 not say how to answer, because we do that.
1356 int answer;
1363 /* Set up according to which answer is the default. */
1386 /* Automatically answer default value if input is not from a terminal. */
1407 answer = fgetc (stdin);
1409 if (answer == EOF) /* C-d */
1415 if (answer != '\n')
1423 if (answer >= 'a')
1424 answer -= 040;
1425 /* Check answer. For the non-default, the user must specify
1427 if (answer == not_def_answer)
1434 if (answer == def_answer || answer == '\n' ||
1435 answer == '\r' || answer == EOF)
1441 printf_filtered ("Please answer %s or %s.\n",
1452 /* Ask user a y-or-n question and return 0 if answer is no, 1 if
1453 answer is yes, or 0 if answer is defaulted.
1456 It should not say how to answer, because we do that. */
1468 /* Ask user a y-or-n question and return 0 if answer is no, 1 if
1469 answer is yes, or 1 if answer is defaulted.
1472 It should not say how to answer, because we do that. */