diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-07 12:13:02 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-07 12:13:02 -0800 |
commit | f57062553ab1451361b76128c4db29c5908f70b1 (patch) | |
tree | 0a13311d4de31c65fa9c003d52408e686258166e /src/nxspp.c | |
parent | 4581329cde6cfb64399be48f58d67310ab19ee1b (diff) |
add includes and print statement
Diffstat (limited to 'src/nxspp.c')
-rw-r--r-- | src/nxspp.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/nxspp.c b/src/nxspp.c deleted file mode 100644 index 7888cbb..0000000 --- a/src/nxspp.c +++ /dev/null @@ -1,24 +0,0 @@ -#include "./include/nxspp.h" -#include "./include/macros.h" -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -npp_t *init_npp(char *source) { - npp_t *n = malloc(sizeof(npp_t)); - if (n == NULL) - die("malloc on nxspp"); - n->source = source; - n->i = 0; - n->c = source[n->i]; - return n; -} - -char *nxspp_collect_id(char *source, int i) {} - -void npp_move(npp_t *p) { - if (p->c != '\0') { - p->i++; - p->c = p->source[p->i]; - } -} |