From 6afe3cc8ec6c009a43950bdbe138cbc2d7a88a4d Mon Sep 17 00:00:00 2001 From: = Date: Thu, 5 May 2022 15:23:47 +0200 Subject: Quality of life changes --- parser.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'parser.c') diff --git a/parser.c b/parser.c index 1c127cd..a680d2a 100644 --- a/parser.c +++ b/parser.c @@ -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 +} -- cgit v1.2.3