kernel_args: redo implementation

This commit is contained in:
Matheus
2025-09-07 23:09:34 -03:00
parent a3a51abfed
commit 80786cf97a
15 changed files with 198 additions and 107 deletions
+13
View File
@@ -99,6 +99,19 @@ void *memmove(void *_d, const void *_s, size_t c) {
return _d;
}
long long atoll(const char *c) {
char first = *c;
if (first == '-')
++c;
int v = 0;
while (*c)
v = v * 10 + (*c++) - '0';
return first == '-' ? -v : v;
}
#define DO_NAME(e) \
case e: \
return #e;