C Workshop
InputLoop.c File Reference
#include <stdio.h>
#include <ctype.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 PrintUpperCase (char input)
 Print a character to the user in uppercase. 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

◆ PrintUpperCase()

void PrintUpperCase ( char  input)

Print a character to the user in uppercase.

Parameters
inputThe character to print

◆ ReadCharacter()

char ReadCharacter ( )

Read a character from the user.

Returns
char The character read