avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Error converting int to string


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Error converting int to string
Date: Fri, 3 Dec 2004 23:14:33 +0100 (MET)

As Leo Hendrawan <address@hidden> wrote:

>    i'm working on my function which parse the ip addr int type
>    variable into strings.

There's a bunch of inet_aton() implementations freely available, why
not just pick up one of them?

INET(3)                FreeBSD Library Functions Manual                INET(3)

NAME
     inet_aton, inet_addr, inet_network, inet_ntoa, inet_ntop, inet_pton,
     inet_makeaddr, inet_lnaof, inet_netof -- Internet address manipulation
     routines

...
     int
     inet_aton(const char *cp, struct in_addr *pin);
DESCRIPTION
...
     The inet_aton() routine interprets the specified character string as an
     Internet address, placing the address into the structure provided.  It
     returns 1 if the string was successfully interpreted, or 0 if the string
     is invalid. [...]
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]