#include <stdio.h>
#ifndef REGTEST
+#include <_PDCLIB_io.h>
-int ungetc_unlocked( int c, struct _PDCLIB_file_t * stream )
+int ungetc_unlocked( int c, FILE * stream )
{
if ( c == EOF || stream->ungetidx == _PDCLIB_UNGETCBUFSIZE )
{
return stream->ungetbuf[stream->ungetidx++] = (unsigned char) c;
}
-int ungetc( int c, struct _PDCLIB_file_t * stream )
+int ungetc( int c, FILE * stream )
{
flockfile( stream );
int r = ungetc_unlocked( c, stream );
#ifdef TEST
#include <_PDCLIB_test.h>
+#include <stdlib.h>
const char* hellostr = "Hello, world!";