summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_compress.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-08-24 01:12:27 +0200
committerAlejandro Colomar <alx@kernel.org>2023-12-19 15:01:46 +0100
commit22dc158a03762c22d75fca7500c32799130f21a7 (patch)
treeb2fe4675bb6a32e91f7c333f9c3deb784fca5415 /src/nxt_http_compress.c
parent13dedafc71925d73ef83d0848271bd5e77f6b14b (diff)
downloadunit-22dc158a03762c22d75fca7500c32799130f21a7.tar.gz
unit-22dc158a03762c22d75fca7500c32799130f21a7.tar.bz2
String: added nxt_atoul().
This is similar to atoi(3) in usage, except that: - It's safe (doesn't have Undefined Behavior). - It receives a nxt_str_t instead of a string. - The base is 0, not 10. Errors are reported with the same error codes as in strtou(3bsd), but they are reported via errno, instead of passing a pointer to an int. Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_http_compress.c')
0 files changed, 0 insertions, 0 deletions