Files
mop3/libu/strconv.c
kamkow1 6c01de8b0d
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 40s
Build documentation / build-and-deploy (push) Successful in 26s
Merge all libs into libu
2026-04-12 13:45:37 +02:00

16 lines
198 B
C

#include <stdint.h>
uint64_t str_to_uint64 (const char* s) {
uint64_t r = 0;
if (!s)
return 0;
while (*s >= '0' && *s <= '9') {
r = r * 10 + (*s - '0');
s++;
}
return r;
}