libite
Functions
yorn.c File Reference
#include <stdio.h>
#include <stdio_ext.h>
#include <stdarg.h>
#include <termios.h>
#include <unistd.h>
Include dependency graph for yorn.c:

Functions

int yorn (const char *fmt,...)
 Pose a a Yes or No question and return answer. More...
 

Detailed Description

Author
Joachim Wiberg
Date
2009-2021

Function Documentation

◆ yorn()

int yorn ( const char *  fmt,
  ... 
)

Pose a a Yes or No question and return answer.

Parameters
fmtStandard 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.