3 ms·
With a few more clever tricks... I did this with my PARSENUM macro (https://github.com/Tarsnap/libcperciva/blob/master/util/parsenum.h https://github.com/Tarsn
by cperciva 1y ago
With a few more clever tricks...
I did this with my PARSENUM macro (https://github.com/Tarsnap/libcperciva/blob/master/util/parsenum.h https://github.com/Tarsnap/libcperciva/blob/master/util/pars...) to parse strings into floating-point, unsigned integer, or signed integer types (and check bounds) using a single interface.