X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fsetvbuf.c;h=00592ff94bb8c20fff24495f0ad7c557e1e680a5;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=e3f9278aed159a316ab9e3da1883ff52ee12767e;hpb=dd71cbbfbd68cd8c653277a0c1f70ab2b179421c;p=pdclib diff --git a/functions/stdio/setvbuf.c b/functions/stdio/setvbuf.c index e3f9278..00592ff 100644 --- a/functions/stdio/setvbuf.c +++ b/functions/stdio/setvbuf.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* setvbuf( FILE *, char *, int, size_t ) This file is part of the Public Domain C Library (PDCLib). @@ -38,7 +36,7 @@ int setvbuf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, char * _PDCLIB_res */ /* If current buffer is big enough for requested size, but not over twice as big (and wasting memory space), we use the - current buffer (i.e., do nothing), to save the malloc() / + current buffer (i.e., do nothing), to save the malloc() / free() overhead. */ if ( ( stream->bufsize < size ) || ( stream->bufsize > ( size << 1 ) ) ) @@ -70,7 +68,8 @@ int setvbuf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, char * _PDCLIB_res #endif #ifdef TEST -#include <_PDCLIB_test.h> + +#include "_PDCLIB_test.h" #include @@ -107,4 +106,3 @@ int main( void ) } #endif -