flag.h icon indicating copy to clipboard operation
flag.h copied to clipboard

Use custom solution instead of `strtoull`

Open ej-shafran opened this issue 2 years ago • 0 comments

Added a macro parse_unsigned_int to be used in functions that will replace the calls to strtoull, very loosely based on the source code for strtoull.

If you think a macro isn't smart here I can inline it to both of the functions, I just felt it's a little repetitive and that it might be useful in case you want to add more numeric types in the future.

An implementation of parse_signed_int should be pretty straightforward

ej-shafran avatar Sep 16 '23 22:09 ej-shafran