procps/include/fileutils.h
Sami Kerola c7cf98b0e0 lib: add fileutils file with stream error checking facility
The close_stream() is copied from GNU lib. Inspiration to do this
is talk by Jim Meyering - Goodbye World! The perils of relying on
output streams in C.

Reference: http://www.irill.org/events/ghm-gnu-hackers-meeting/videos/jim-meyering-goodbye-world-the-perils-of-relying-on-output-streams-in-c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-23 15:57:41 +01:00

8 lines
123 B
C

#ifndef PROCPS_NG_FILEUTILS
#define PROCPS_NG_FILEUTILS
int close_stream(FILE * stream);
void close_stdout(void);
#endif