INtime SDK Help
ungetc, ungetwc

Pushes a character back to the input stream, causing that character to be the next character read.

#include <stdio.h>

int ungetc(int c FILE *stream);

#include <wchar.h>

wint_t ungetwc(win_t c, FILE *stream);

Parameters

c
Character to be pushed; must not be EOF/WEOF.
stream
Pointer to FILE structure.

Remarks

Read the next character using getc or getchar. This function fails if it is called more than once before the next read.

ungetwc is the wide-character version of ungetc.

Return Values

A character value
Success.
EOF (ungetc) or WEOF (ungetwc)
Failure.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_ungettc ungetc ungetwc

Requirements

Versions Defined in Include Link to
INtime 3.0
INtime 6.0 (for wide-character and generic text versions)
intime/rt/include/stdio.h
intime/rt/include/wchar.h
intime/rt/include/tchar.h
stdio.h
wchar.h
tchar.h
clib.lib
   
See Also