libite 2.6.1
yorn.c File Reference
#include <stdio.h>
#include <stdio_ext.h>
#include <stdarg.h>
#include <termios.h>
#include <unistd.h>

Go to the source code of this file.

Functions

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

Detailed Description

Author
Joachim Wiberg
Date
2009-2021

Definition in file yorn.c.

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.

Definition at line 74 of file yorn.c.