]>
git.scottworley.com Git - overonion/blob - reverse_lib.h
d8b04802b607c6d07170b88a2b429b4163a1f79c
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 */