Next Previous Contents

115. SLang_ungetkey_string


Unget a key string


int SLang_ungetkey_string (unsigned char *buf, unsigned int n)


The SLang_ungetkey_string function may be used to push the n characters pointed to by buf onto the buffered input stream that SLgetkey uses. If there is not enough room for the characters, -1 is returned and none are buffered. Otherwise, it returns zero.


The difference between SLang_buffer_keystring and SLang_ungetkey_string is that the SLang_buffer_keystring appends the characters to the end of the getkey buffer, whereas SLang_ungetkey_string inserts the characters at the beginning of the input buffer.

See Also

SLang_ungetkey, SLang_getkey

Next Previous Contents