mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel_args: redo implementation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user