inet_ntoa () library call is often used to print the IP address in a dotted decimal format. Care should be taken while using two or more inet_ntoa () library calls in a single statement for example
-----------
#include <stdio.h>
#include <netinet/in.h>
#include <sys/socket.h>
struct inaddr...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.