08-27-04 11:21 PM
wim.deprez+google@student.luc.ac.be (Wim Deprez) writes:
> Hello group,
>
> my input is a network byte order long that represents an ip address,
> and I want to the char * numbers-and-dots notation back, for example
> to write it out to the user or something. How do I do that?
>
> a stupid example:
>
> int main (int argc, char* argv[])
> {
> unsigned long ma = inet_addr("185.21.0.9");
>
> printf("%s",XXX(ma));
> return 0;
> }
>
> where XXX(ma) becomes "185.21.0.9" again.
inet_ntoa()
--
Måns Rullgård
mru@mru.ath.cx
[ Post a follow-up to this message ]
|