sdutil Write DOS Master Boot Record
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m7s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m7s
This commit is contained in:
15
libstring/strconv.c
Normal file
15
libstring/strconv.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user