MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


X/Open Curses Library Functions                 ungetch(3XCURSES)



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

SYNOPSIS
     cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
      -R  /usr/xpg4/lib  -lcurses  [ library... ]

     c89 [ flag... ] file... -lcurses [ library... ]

     #include 

     int ungetch(int ch);


     int ungetwch(const wchart wch);


PARAMETERS
     ch     Is the single byte character to be put  back  in  the
            input queue for the  next call to getch(3XCURSES).


     wch    Is the wide character to be put  back  in  the  input
            queue for the next call  to getwch(3XCURSES).


DESCRIPTION
     The ungetch() function pushes ch back onto the  input  queue
     until the next  call to getch().


     The ungetwch() function is similar to ungetch() except that
     ch can be of type wchart.

RETURN VALUES
     On success,  these  functions  return  OK.  Otherwise,  they
     return ER.

ERORS
     None.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:










SunOS 5.11           Last change: 5 Jun 2002                    1






X/Open Curses Library Functions                 ungetch(3XCURSES)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Standard                    
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     getwch(3XCURSES),   getch(3XCURSES),   libcurses(3XCURSES),
     attributes(5), standards(5)











































SunOS 5.11           Last change: 5 Jun 2002                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™