X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fsetvbuf.c;h=00592ff94bb8c20fff24495f0ad7c557e1e680a5;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=650a8505518fb5a6e77b00723882d9967bad7b75;hpb=b1fc26afebd4d557ff89a44bc21767a8704c3809;p=pdclib diff --git a/functions/stdio/setvbuf.c b/functions/stdio/setvbuf.c index 650a850..00592ff 100644 --- a/functions/stdio/setvbuf.c +++ b/functions/stdio/setvbuf.c @@ -36,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 ) ) ) @@ -68,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 @@ -105,4 +106,3 @@ int main( void ) } #endif -