X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffgets.c;h=955c48d8ff64f6c023889ef129cd4ab567f413c1;hb=d6f1494a4f38a212b29a13ee713885058dcf0fe7;hp=1afd79f6ed7ed50426dadd32414d3a5c1f851df3;hpb=acb574418b603006718fc8e9584808b8757d7c0b;p=pdclib diff --git a/functions/stdio/fgets.c b/functions/stdio/fgets.c index 1afd79f..955c48d 100644 --- a/functions/stdio/fgets.c +++ b/functions/stdio/fgets.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* fgets( char *, int, FILE * ) This file is part of the Public Domain C Library (PDCLib). @@ -10,8 +8,7 @@ #ifndef REGTEST -#define _PDCLIB_GLUE_H _PDCLIB_GLUE_H -#include <_PDCLIB_glue.h> +#include "_PDCLIB_glue.h" char * fgets( char * _PDCLIB_restrict s, int size, struct _PDCLIB_file_t * _PDCLIB_restrict stream ) { @@ -50,7 +47,7 @@ char * fgets( char * _PDCLIB_restrict s, int size, struct _PDCLIB_file_t * _PDCL #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" #include int main( void ) @@ -82,7 +79,7 @@ int main( void ) TESTCASE( fgets( buffer, 2, fh ) == NULL ); TESTCASE( feof( fh ) ); TESTCASE( fclose( fh ) == 0 ); - remove( testfile ); + TESTCASE( remove( testfile ) == 0 ); return TEST_RESULTS; }