X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fsetvbuf.c;h=00592ff94bb8c20fff24495f0ad7c557e1e680a5;hb=c5c4350d2beb1ebe93f3f6d45643a64eed2a7c7a;hp=ecb0be5e20f7a4063100f2ac8456e747f92f2dbd;hpb=6c8c4f80e32177f27f89b4aff3b7568a7afd4041;p=pdclib diff --git a/functions/stdio/setvbuf.c b/functions/stdio/setvbuf.c index ecb0be5..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). @@ -21,7 +19,6 @@ int setvbuf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, char * _PDCLIB_res we don't want to e.g. flush the stream for every character of a stream being printed. */ - /* TODO: Check this */ break; case _IOFBF: case _IOLBF: @@ -39,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 ) ) ) @@ -71,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 @@ -108,4 +106,3 @@ int main( void ) } #endif -