[libc-commits] [libc] [libc] implement `inet_aton` (PR #162651)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Mon Oct 20 11:02:33 PDT 2025


================
@@ -156,3 +156,10 @@ parsed as normal. For l64a it's unspecified what happens if the input value is
 negative. For LLVM-libc, all inputs to l64a are treated as unsigned 32 bit ints.
 Additionally, the return of l64a is in a thread-local buffer that's overwritten
 on each call.
+
+`inet_aton` and Non-Standard Binary Integers
+--------------------------------------------
+The current implementation of the `inet_aton` function utilizes
+`internal::strtointeger` to parse IPv4 numbers-and-dots notations. This
----------------
michaelrj-google wrote:

nit: replace `internal::strtointeger` with "the same code as strtol"

https://github.com/llvm/llvm-project/pull/162651


More information about the libc-commits mailing list