Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ungetch(3X) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

getch(3X)

curses(5)

ungetch(3X)                                                     ungetch(3X)

NAME
     ungetch, ungetwch - push a character onto the input queue

SYNOPSIS
     cc [flag ...] file ... -lcurses [library ...]

     #include <curses.h>

     int ungetch(int ch);

     int ungetwch(const wchart wch);

DESCRIPTION
     The ungetch() function pushes the single-byte character ch onto the
     head of the input queue.

     The ungetwch() function pushes the wide character wch onto the head
     of the input queue.

     One character of push-back is guaranteed. The result of successive
     calls without an intervening call to getch() or getwch() are unspeci-
     fied.

RETURN VALUE
     Upon successful completion, these functions return OK. Otherwise, they
     return ERR.

ERRORS
     No errors are defined.

SEE ALSO
     curses(3X), getch(3X), getwch(3X), curses(5).























Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026