]> git.scottworley.com Git - overonion/blobdiff - reverse_lib.h
Switch to stdio for output. It's simpler
[overonion] / reverse_lib.h
index f4d7dd677f91657708fe9a2abb25f2d9832e90ad..9c0f05ae2eaa9d75d1894ff4da8a0eb3c55eecfd 100644 (file)
@@ -1,8 +1,10 @@
 #ifndef _OVERONION_REVERSE_LIB_H
 #define _OVERONION_REVERSE_LIB_H
 
-/* Copy the contents of input_filename to output_fd 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, int output_fd);
+void reverse_file(const char* input_filename, FILE* output_stream);
 
 #endif /* _OVERONION_REVERSE_LIB_H */