# $Id$
# This is where you chose which platform to compile for (see 'make links' / './platform')
-PLATFORM := example
+PLATFORM := example_cygwin
# This is a list of all non-source files that are part of the distribution.
AUXFILES := Makefile Readme.txt
#include <stdio.h>
-#include <_PDCLIB_glue.h>
-
#ifndef REGTEST
+#include <_PDCLIB_glue.h>
+
int fgetc( struct _PDCLIB_file_t * stream )
{
if ( _PDCLIB_prepread( stream ) == EOF )
#include <stdio.h>
-#include <_PDCLIB_glue.h>
-
#ifndef REGTEST
+#include <_PDCLIB_glue.h>
+
/* 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 <_PDCLIB_glue.h>
+
#include <stdbool.h>
#include <string.h>
*/
#include <stdio.h>
-#include <_PDCLIB_glue.h>
#ifndef REGTEST
+#include <_PDCLIB_glue.h>
+
#include <stdbool.h>
#include <string.h>
{
char buffer[100];
-#ifndef TEST_CONVERSION_ONLY
- SCANF_TEST( 0, "foo", "foo", NULL );
-#endif
SCANF_TEST( 1, "foo", "%3c", buffer );
TESTCASE( memcmp( buffer, "foo", 3 ) == 0 );
}