#include <stdio.h>
-#ifndef REGTEST
-
#include <_PDCLIB_glue.h>
+#ifndef REGTEST
+
int fgetc( struct _PDCLIB_file_t * stream )
{
if ( _PDCLIB_prepread( stream ) == EOF )
#include <stdio.h>
-#ifndef REGTEST
-
#include <_PDCLIB_glue.h>
+#ifndef REGTEST
+
/* Write the value c (cast to unsigned char) to the given stream.
Returns c if successful, EOF otherwise.
If a write error occurs, the error indicator of the stream is set.
*/
#include <stdio.h>
+#include <_PDCLIB_glue.h>
+
#ifndef REGTEST
#include <stdbool.h>
#include <string.h>
-#include <_PDCLIB_glue.h>
-
size_t fread( void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, struct _PDCLIB_file_t * _PDCLIB_restrict stream )
{
if ( _PDCLIB_prepread( stream ) == EOF )
*/
/* The following functions delegate their tests to here:
fgetc fflush rewind fputc ungetc fseek
- flushbuffer seek fillbuffer
+ flushbuffer seek fillbuffer prepread prepwrite
*/
char * buffer = (char*)malloc( 4 );
FILE * fh;
*/
#include <stdio.h>
+#include <_PDCLIB_glue.h>
+
#ifndef REGTEST
#include <stdbool.h>
#include <string.h>
-#include <_PDCLIB_glue.h>
-
size_t fwrite( const void * _PDCLIB_restrict ptr, size_t size, size_t nmemb, struct _PDCLIB_file_t * _PDCLIB_restrict stream )
{
if ( _PDCLIB_prepwrite( stream ) == EOF )