X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fsetvbuf.c;h=00592ff94bb8c20fff24495f0ad7c557e1e680a5;hp=dca570656a3c92528821fa3d419f997ea274b4bc;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hpb=2040228f27d623585d339dec175c4e779ca9edb5 diff --git a/functions/stdio/setvbuf.c b/functions/stdio/setvbuf.c index dca5706..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,6 +68,7 @@ int setvbuf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, char * _PDCLIB_res #endif #ifdef TEST + #include "_PDCLIB_test.h" #include @@ -105,4 +106,3 @@ int main( void ) } #endif -