diff options
author | Rob Landley <rob@landley.net> | 2016-07-12 14:51:51 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-07-12 14:51:51 -0500 |
commit | 30454a4ca132ea76851f799546f67f98b074f650 (patch) | |
tree | 2eb920383db5907af4ae141b27fa46d535b2b772 /lib/lib.h | |
parent | d5088a059649daf34e729995bb3daa3eb64fa432 (diff) | |
download | toybox-30454a4ca132ea76851f799546f67f98b074f650.tar.gz |
Convert atolx() and friends to use long long internally. Update design.html
to use this (and tail) as examples of simplicity of implementation winning
and losing.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -184,10 +184,10 @@ int64_t peek_be(void *ptr, unsigned size); int64_t peek(void *ptr, unsigned size); void poke(void *ptr, uint64_t val, int size); struct string_list *find_in_path(char *path, char *filename); -long estrtol(char *str, char **end, int base); -long xstrtol(char *str, char **end, int base); -long atolx(char *c); -long atolx_range(char *numstr, long low, long high); +long long estrtol(char *str, char **end, int base); +long long xstrtol(char *str, char **end, int base); +long long atolx(char *c); +long long atolx_range(char *numstr, long long low, long long high); int stridx(char *haystack, char needle); char *strlower(char *s); char *strafter(char *haystack, char *needle); |