C Workshop
InputLoop.c File Reference
#include <stdio.h>
#include "InputLoop.h"

Functions

void InputLoop (void)
 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.

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

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