diff options
author | Valentin Bartenev <vbart@nginx.com> | 2020-03-30 19:37:58 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2020-03-30 19:37:58 +0300 |
commit | 68c6b67ffc840c78eddd27a65e9bf1370aaf5631 (patch) | |
tree | e53b36a7d4f40976daf52fe7c644c2d311bbb83b /src/nxt_string.h | |
parent | 0935630cba069d6619e967404bb6c7c2a93fbe7e (diff) | |
download | unit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.gz unit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.bz2 |
Configuration: support for rational numbers.
Diffstat (limited to 'src/nxt_string.h')
-rw-r--r-- | src/nxt_string.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_string.h b/src/nxt_string.h index d10658f7..7863c60e 100644 --- a/src/nxt_string.h +++ b/src/nxt_string.h @@ -20,6 +20,10 @@ nxt_upcase(c) \ nxt_isdigit(c) \ ((u_char) ((c) - '0') <= 9) +#define \ +nxt_strtod(s, endptr) \ + strtod((char *) s, (char **) endptr) + #define \ nxt_strlen(s) \ @@ -83,6 +87,7 @@ nxt_strncmp(s1, s2, length) \ strncmp((char *) s1, (char *) s2, length) +NXT_EXPORT u_char *nxt_cpystr(u_char *dst, const u_char *src); NXT_EXPORT u_char *nxt_cpystrn(u_char *dst, const u_char *src, size_t length); NXT_EXPORT nxt_int_t nxt_strcasecmp(const u_char *s1, const u_char *s2); NXT_EXPORT nxt_int_t nxt_strncasecmp(const u_char *s1, const u_char *s2, |