]>
git.scottworley.com Git - overonion/blob - reverse_lib.h
1 #ifndef _OVERONION_REVERSE_LIB_H
2 #define _OVERONION_REVERSE_LIB_H
6 /* Copy the contents of input_filename to output_stream backwards.
7 * input_filename must be a real file, not a pipe. */
8 void reverse_file(const char* input_filename
, FILE* output_stream
);
10 /* Save the contents of input_stream to a temporary file. On EOF,
11 * emit them backwards to output_stream. Temporary files go in
12 * $TMPDIR if set, /tmp otherwise. */
13 void reverse_stream(FILE* input_stream
, FILE* output_stream
);
15 #endif /* _OVERONION_REVERSE_LIB_H */