ungetc man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

ungetc(3S)							    ungetc(3S)

NAME
       ungetc()	 - push character back into input stream

SYNOPSIS
   Obsolescent Interface
DESCRIPTION
       inserts the character c (converted to an unsigned char) into the buffer
       associated with an input stream.	 That character, c, is returned by the
       next  call  to (see getc(3S)) on that stream.  A successful intervening
       call to a file positioning function with stream or erases all memory of
       the inserted characters.

       affects	only the buffer associated with the input stream.  It does not
       affect the contents of the file corresponding to stream.

       One character of pushback is guaranteed.

       If c equals EOF, does nothing to the buffer and returns EOF.

   Obsolescent Interface
       pushes character back into input stream.

APPLICATION USAGE
       After is applied to a stream, the  stream  becomes  byte-oriented  (see
       orientation(5)).

RETURN VALUE
       If successful, and return c and clear the end-of-file indicator for the
       stream.	and return EOF if they cannot insert the character.

WARNINGS
       is an obsolescent  interface  supported	only  for  compatibility  with
       existing DCE applications.  New multithreaded applications should use

SEE ALSO
       flockfile(3S),  fseek(3S),  fgetpos(3S), getc(3S), setbuf(3S), orienta‐
       tion(5), thread_safety(5).

STANDARDS CONFORMANCE
								    ungetc(3S)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net