42_KFS_LIB/src/stdlib/atoll.c
2024-09-06 23:53:45 +02:00

13 lines
238 B
C

#include "../../headers/ctype.h"
long long atoll(const char *str)
{
const char *start = str;
long long ret;
while (*start != '\0') {
if (isdigit(*str))
ret = ret * 10 + *str - '0';
}
return ret;
}