Support execution of command script arguments.
[open-adventure.git] / cheat.c
diff --git a/cheat.c b/cheat.c
index 0eee14bfb2d44b29be7d0d3aad4639cbe538cf2a..d25e218fdf9a70b153b16cf836e8758037683105 100644 (file)
--- a/cheat.c
+++ b/cheat.c
@@ -12,6 +12,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdbool.h>
+#include <editline/readline.h>
 #include "advent.h"
 
 int main(int argc, char *argv[])
@@ -96,3 +97,14 @@ int main(int argc, char *argv[])
 
     return EXIT_SUCCESS;
 }
+
+/* 
+ * Ugh...unused, but required for linkage.
+ * See thje actually useful version of this in main.c
+ */
+
+char *myreadline(const char *prompt)
+{
+    return readline(prompt);
+}
+