Digital UNIX Diffs - ungetc(5) Digital UNIX Diffs - ungetc(5)NAMEungetc - Pushes a character back into the input stream
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <stdio.h>
int ungetc(
int c,
FILE *stream);
PARAMETERS
Specifies a byte to be inserted into the input stream. Specifies the
input stream.
DIFFERENCESvms-vaxc(5): OpenVMS VAX C vs DEC C Differences
With the DEC C RTL, a call to ungetc(3) clears the end-of-file flag
(EOF) for the file. With the VAX C RTL it does not.
In the DEC C RTL, a call to a file position routine (e.g. fseek(3))
causes the character pushed back by a call to ungetc(3) to be lost.
The VAX C RTL does not discard this character in this situation.
RELATED INFORMATION
Functions: ungetc(3)CATEGORY INDEXvms-vaxc(5)
delim off
Digital UNIX Diffs - ungetc(5)