diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/xatonum.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/xatonum.h b/include/xatonum.h index 6f76a3c96..45ebbfc00 100644 --- a/include/xatonum.h +++ b/include/xatonum.h | |||
@@ -168,6 +168,15 @@ uint32_t bb_strtou32(const char *arg, char **endp, int base) | |||
168 | return bb_strtoul(arg, endp, base); | 168 | return bb_strtoul(arg, endp, base); |
169 | return BUG_bb_strtou32_unimplemented(); | 169 | return BUG_bb_strtou32_unimplemented(); |
170 | } | 170 | } |
171 | static ALWAYS_INLINE | ||
172 | int32_t bb_strtoi32(const char *arg, char **endp, int base) | ||
173 | { | ||
174 | if (sizeof(int32_t) == sizeof(int)) | ||
175 | return bb_strtoi(arg, endp, base); | ||
176 | if (sizeof(int32_t) == sizeof(long)) | ||
177 | return bb_strtol(arg, endp, base); | ||
178 | return BUG_bb_strtou32_unimplemented(); | ||
179 | } | ||
171 | 180 | ||
172 | /* Floating point */ | 181 | /* Floating point */ |
173 | 182 | ||