#include <stdio.h>
#include <stdio_ext.h>
#include <stdarg.h>
#include <termios.h>
#include <unistd.h>
|
int | yorn (const char *fmt,...) |
| Pose a a Yes or No question and return answer. More...
|
|
- Author
- Joachim Wiberg
- Date
- 2009-2021
- Copyright
- ISC License
◆ yorn()
int yorn |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Pose a a Yes or No question and return answer.
- Parameters
-
fmt | Standard printf() style argument(s). |
This function prints the given question on screen, waits for user input in the form of yes or no.
- Returns
- TRUE(1) or FALSE(0). True if the answer is yes.