Remove #ifdefs for readability

This commit is contained in:
magnus committed 2021-12-31 12:27:43 -06:00
1 parent 425eefeb35
commit 2f1b1a5311
4 files changed
+55 -62

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#include <stdlib.h>
#include <inttypes.h>
uint32_t parse(char* p, size_t n) {
uint32_t ret = 0;
for (size_t i = 0; (i < n) && p[i]; i++) {
ret = (10 * ret) + (p[i] - '0');
}
return ret;
}