diff options
| author | = | 2022-05-05 15:23:47 +0200 |
|---|---|---|
| committer | = | 2022-05-05 15:23:47 +0200 |
| commit | 6afe3cc8ec6c009a43950bdbe138cbc2d7a88a4d (patch) | |
| tree | 7c2854537fc1bdf5f5aa8e861cf676204d773967 /parser.c | |
| parent | 2b1838ecf30fd91575a71b877965ed3363356138 (diff) | |
| download | soikk-DB-6afe3cc8ec6c009a43950bdbe138cbc2d7a88a4d.tar.xz soikk-DB-6afe3cc8ec6c009a43950bdbe138cbc2d7a88a4d.tar.zst | |
Quality of life changes
Diffstat (limited to 'parser.c')
| -rw-r--r-- | parser.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -1,19 +1,6 @@ #include "db.h" -uint16_t len(const char *s){ - uint16_t l = -1; - while(s[++l]); - return l; -} - -bool sameStr(const char* s1, const char *s2){ - uint16_t i1 = 0, i2 = 0; - while(s1[i1] && s2[i2] && s1[i1] == s2[i2]) - ++i1, ++i2; - return !s1[i1] && !s2[i2]; -} - int handleMetaCommand(inputBuffer *in){ if(sameStr(in->buffer, ".exit")){ freeInputBuffer(in); @@ -30,4 +17,4 @@ int handleInput(inputBuffer *in){ }else{ printf("normal command\n"); } -}
\ No newline at end of file +} |
