0

While using socket library of c++, I find the following pointer (servinfo) to the library function getaddrinfo. Now I need to know the array size of the pointer servinfo (allocated by the library function) so that I can access each element of the array. How can I get the size of the array servinfo.

struct addrinfo *servinfo;

getaddrinfo(NULL, "3490", &hints,
	&servinfo)) != 0

Thanks.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Clinton Portis
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.