llvm-c166/libc/include/arpa
Pavel Labath 89fa7352a2
[libc] Implement inet_ntoa (#208702)
Implement inet_ntoa, reusing the internal net::ipv4_to_str helper that
backs inet_ntop.

The result is stored in a *thread-local* static buffer. A thread-local
buffer is not required for POSIX conformance, but there is some
precedent for that, both in llvm libc (e.g. `strsignal`) and in glibc
(whose `inet_ntoa` uses it). I'm doing the same for maximum
compatiblity.

Assisted by Gemini.
2026-07-15 07:08:26 +00:00
..
inet.yaml [libc] Implement inet_ntoa (#208702) 2026-07-15 07:08:26 +00:00