#include <stdio.h>
#include <stdio_ext.h>
#include <stdarg.h>
#include <termios.h>
#include <unistd.h>
Go to the source code of this file.
|
int | yorn (const char *fmt,...) |
|
- Author
- Joachim Wiberg
- Date
- 2009-2021
- Copyright
- ISC License
Definition in file yorn.c.
◆ 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.
Definition at line 74 of file yorn.c.