Next Previous Contents

117. SLang_ungetkey

Synopsis

Push a character back onto the input buffer

Usage

int SLang_ungetkey (unsigned char ch)

Description

SLang_ungetkey pushes the character ch back onto the SLgetkey input stream. Upon success, it returns zero, otherwise it returns 1.

Example

This function is implemented as:

    int SLang_ungetkey (unsigned char ch)
    {
       return SLang_ungetkey_string(&ch, 1);
    }
See Also

SLang_getkey, SLang_ungetkey_string


Next Previous Contents