]> git.scottworley.com Git - overonion/blobdiff - reverse_lib.h
Switch to stdio for output. It's simpler
[overonion] / reverse_lib.h
index 58345fa21ba72eab49f0f1f6be6d27c0b6a5feb0..9c0f05ae2eaa9d75d1894ff4da8a0eb3c55eecfd 100644 (file)
@@ -1,8 +1,10 @@
 #ifndef _OVERONION_REVERSE_LIB_H
 #define _OVERONION_REVERSE_LIB_H
 
-/* Copy the contents of input_filename to stdout backwards.
+#include <stdio.h>
+
+/* Copy the contents of input_filename to output_stream backwards.
  * input_filename must be a real file, not a pipe. */
-void reverse_file(const char* input_filename);
+void reverse_file(const char* input_filename, FILE* output_stream);
 
 #endif /* _OVERONION_REVERSE_LIB_H */