diff options
author | Denis Vlasenko | 2007-10-18 12:54:39 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-10-18 12:54:39 +0000 |
commit | f74194e942b7a65117914ecc9ddb62d9b1cc9e82 (patch) | |
tree | 58799a5cb03d0904e26abef1aa8531b925d80cd6 /include | |
parent | 03630784374501baa4d6a81144e54aa7601f5e19 (diff) | |
download | busybox-f74194e942b7a65117914ecc9ddb62d9b1cc9e82.zip busybox-f74194e942b7a65117914ecc9ddb62d9b1cc9e82.tar.gz |
xatonum.h: add comment
lineedit: fix typo in comment
httpd: support for proxying connection to other http server
(by Alex Landau <landau_alex@yahoo.com>)
Diffstat (limited to 'include')
-rw-r--r-- | include/xatonum.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/xatonum.h b/include/xatonum.h index 3875455..49ddced 100644 --- a/include/xatonum.h +++ b/include/xatonum.h @@ -105,7 +105,18 @@ static ALWAYS_INLINE uint32_t xatou32(const char *numstr) return BUG_xatou32_unimplemented(); } -/* Non-aborting kind of convertors */ +/* Non-aborting kind of convertors: bb_strto[u][l]l */ + +/* On exit: errno = 0 only if there was non-empty, '\0' terminated value + * errno = EINVAL if value was not '\0' terminated, but othervise ok + * Return value is still valid, caller should just check whether end[0] + * is a valid terminating char for particular case. OTOH, if caller + * requires '\0' terminated input, [s]he can just check errno == 0. + * errno = ERANGE if value had alphanumeric terminating char ("1234abcg"). + * errno = ERANGE if value is out of range, missing, etc. + * errno = ERANGE if value had minus sign for strtouXX (even "-0" is not ok ) + * return value is all-ones in this case. + */ unsigned long long bb_strtoull(const char *arg, char **endp, int base); long long bb_strtoll(const char *arg, char **endp, int base); |