diff options
| author | Soikk | 2022-05-05 18:49:13 +0200 |
|---|---|---|
| committer | Soikk | 2022-05-05 18:49:13 +0200 |
| commit | cdff3c73f8945fe207b49ad6e7c7ce41b9e4ab31 (patch) | |
| tree | 324257f3e7f72d9fd22f60ac05282bca38e84a2c /repl.c | |
| parent | 39c0dfbc9c4279e519841afae5c7413b1bdf56d8 (diff) | |
| download | soikk-DB-cdff3c73f8945fe207b49ad6e7c7ce41b9e4ab31.tar.xz soikk-DB-cdff3c73f8945fe207b49ad6e7c7ce41b9e4ab31.tar.zst | |
Deleted spare files
Diffstat (limited to 'repl.c')
| -rw-r--r-- | repl.c | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -1,30 +0,0 @@ -#include "db.h" - - -inputBuffer *newInputBuffer(void){ - inputBuffer *in = malloc(sizeof(inputBuffer)); - in->buffer = NULL; - in->inputSize = 0; - - return in; -} - -void freeInputBuffer(inputBuffer *in){ - free(in->buffer); - free(in); -} - -void getInput(inputBuffer *in){ - size_t n; - ssize_t r = getline(&(in->buffer), &n, stdin); - if(r <= 0){ - printf("Error\n"); - exit(r); - } - in->inputSize = r-1; - in->buffer[in->inputSize] = 0; -} - -void prompt(void){ - printf("db > "); -}
\ No newline at end of file |
