-/* $Id$ */
-
/* fwrite( const void *, size_t, size_t, FILE * )
This file is part of the Public Domain C Library (PDCLib).
*/
#include <stdio.h>
+#include <stdbool.h>
+#include <string.h>
#ifndef REGTEST
-#include <_PDCLIB_glue.h>
-
-#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 )
{
return 0;
}
_PDCLIB_size_t offset = 0;
- bool lineend = false;
+ /* TODO: lineend */
+ /* bool lineend = false; */
size_t nmemb_i;
for ( nmemb_i = 0; nmemb_i < nmemb; ++nmemb_i )
{
{
/* Remember last newline, in case we have to do a partial line-buffered flush */
offset = stream->bufidx;
- lineend = true;
+ /* lineend = true; */
}
if ( stream->bufidx == stream->bufsize )
{
/* Returning number of objects completely buffered */
return nmemb_i;
}
- lineend = false;
+ /* lineend = false; */
}
}
}
#endif
#ifdef TEST
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
int main( void )
{
}
#endif
-