#pragma once #include #include inline usize _atou(const char** str) { usize val = 0; while (_isdigit(**str)) { val = (10 * val) + (**str - '0'); (*str)++; } return val; } inline isize _atos(const char** str) { bool neg = false; isize val = 0; switch (**str) { case '-': neg = true; (*str)++; break; case '+': (*str)++; break; default: break; } while (_isdigit(**str)) { val = (10 * val) + (**str - '0'); (*str)++; } return neg ? -val : val; }