Design Pattern Examples
Overview of object-oriented design patterns
helpers/readkey.h File Reference

Declaration of the readkey() function, a blocking read for a key from the keyboard. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __READKEY_H__
 

Functions

int readkey (void)
 Read a key from the keyboard, blocking if no key is pressed. Use the checkforkey() function to see if a key has been pressed.
 

Detailed Description

Declaration of the readkey() function, a blocking read for a key from the keyboard.

Definition in file helpers/readkey.h.

Macro Definition Documentation

◆ __READKEY_H__

#define __READKEY_H__

Definition at line 8 of file helpers/readkey.h.

Function Documentation

◆ readkey()

int readkey ( void  )

Read a key from the keyboard, blocking if no key is pressed. Use the checkforkey() function to see if a key has been pressed.

Returns
Returns the ASCII for the key pressed.

Definition at line 14 of file readkey.c.

Referenced by Flyweight_Exercise().