View Bug Activity | Format For Printing
Why are the size variables in libc/resolv/inet_ntop.c of type socklen_t instead of size_t while in fact they have nothing to do with any socket structures? I ask about this because I just had a proble when I read the header file and the manual (*not* carefuly enough) and put *thoughtlessly* sizeof(struct sockaddr) as fourth argument. Of course it didn't work. Indeed now for me this is only a matter of clarity but please answer.
See http://www.opengroup.org/onlinepubs/009695399/functions/inet_ntop.html
Note that the info page for inet_ntop() shows the wrong prototype. The last argument should be shown with the type socklen_t, not size_t. The info page should be fixed. Cheers, Michael