X-Git-Url: http://git.scottworley.com/overonion/blobdiff_plain/a99e77b43df141c988b52e663d64d40e79f11895..d778dfea549bb736863c6b24b6fd1950577b0a5c:/reverse_lib.h?ds=sidebyside diff --git a/reverse_lib.h b/reverse_lib.h index 9c0f05a..d8b0480 100644 --- a/reverse_lib.h +++ b/reverse_lib.h @@ -7,4 +7,9 @@ * input_filename must be a real file, not a pipe. */ void reverse_file(const char* input_filename, FILE* output_stream); +/* Save the contents of input_stream to a temporary file. On EOF, + * emit them backwards to output_stream. Temporary files go in + * $TMPDIR if set, /tmp otherwise. */ +void reverse_stream(FILE* input_stream, FILE* output_stream); + #endif /* _OVERONION_REVERSE_LIB_H */