Support execution of command script arguments.

This commit is contained in:
Eric S. Raymond 2022-04-05 08:31:10 -04:00
parent 8378063198
commit bb2b8e0fca
7 changed files with 80 additions and 9 deletions

12
cheat.c
View file

@ -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);
}