diff options
author | John Ankarström <john@ankarstrom.se> | 2019-01-10 00:35:49 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2019-01-10 00:38:47 +0100 |
commit | 3ba955ff8cdafd49d6bebcdef0790e3bcce98508 (patch) | |
tree | 419d7e5139e2dfeb224efa17bceb38957b70afd5 | |
parent | 6a421fd01e7e9240d5b9ba84743ea176a81eba2a (diff) | |
download | repl-3ba955ff8cdafd49d6bebcdef0790e3bcce98508.tar.gz |
added history
-rw-r--r-- | repl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -36,6 +36,8 @@ int main(int argc, char *argv[]) { printf("\n"); break; } + + add_history(input); int size = strlen(argv[1]) + 1 + strlen(input) + 1; char *command = malloc(size); |