| @node inet_addr | |
| @subsection @code{inet_addr} | |
| @findex inet_addr | |
| POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/inet_addr.html} | |
| Gnulib module: --- | |
| Portability problems fixed by Gnulib: | |
| @itemize | |
| @end itemize | |
| Portability problems not fixed by Gnulib: | |
| @itemize | |
| @item | |
| This function is declared in @code{<winsock2.h>} instead of @code{<arpa/inet.h>} | |
| on some platforms: | |
| mingw, MSVC 14. | |
| @item | |
| POSIX.1-2024 says this function is obsolescent and it is planned to be | |
| removed in a future version. | |
| Use the function @code{inet_pton} instead. | |
| @item | |
| On some old platforms, this function returns a @samp{struct in_addr} rather | |
| than a scalar type such as @samp{unsigned int} or @samp{unsigned long}. | |
| @end itemize |