C Workshop
InputLoop.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Functions

void InputLoop ()
 Function that receives character input from the user and prints it. More...
 
char ReadCharacter ()
 Read a character from the user. More...
 
void PrintCharacter (char input)
 Print a character to the user. More...
 
bool IsQ (char input)
 Check if a character is a 'Q' or 'q'. More...
 

Function Documentation

◆ InputLoop()

void InputLoop ( )

Function that receives character input from the user and prints it.

The function terminates when the input is 'Q' or 'q'

◆ IsQ()

bool IsQ ( char  input)

Check if a character is a 'Q' or 'q'.

Parameters
inputCharacter to check
Returns
true if the character is a 'Q' or 'q', false otherwise

◆ PrintCharacter()

void PrintCharacter ( char  input)

Print a character to the user.

Parameters
inputThe character to print

◆ ReadCharacter()

char ReadCharacter ( )

Read a character from the user.

Returns
char The character read