Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_ntoa_r.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_ntoa_r.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_ntoa_r.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_ntoa_r.html on line 8
Convert an Internet address into a string
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
char * inet_ntoa_r( struct in_addr in,
char * buffer,
int bufflen );
- in
- The Internet address that you want to convert.
- buffer
- A buffer where the function can store the result.
- bufflen
- The size of the buffer, in bytes.
libsocket
Use the -l socket option to
qcc
to link against this library.
The inet_ntoa_r() function is a thread-safe version of
inet_ntoa().
It converts an IPv4 Internet address into a string
(for example, “127.0.0.1"”).
For more information on this routine,
see inet_aton().
A string representing an Internet address,
or NULL if an error occurs (errno is set).
- ERANGE
- The supplied buffer isn't large enough to store the result.
Unix
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
inet_aton(),
inet_ntoa()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_ntoa_r.html on line 139
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/inet_ntoa_r.html on line 139