AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/win32/bip-init.c
long bip_getaddrbyname(
    const char *host_name)
{
    struct hostent *host_ent;

    if ((host_ent = gethostbyname(host_name)) == NULL)
        return 0;

    return *(long *) host_ent->h_addr;
}
/* gets an IP address by name, where name can be a
   string that is an IP address in dotted form, or
   a name that is a domain name
   returns 0 if not found, or
   an IP address in network byte order */
gets an IP address by name, where name can be a
string that is an IP address in dotted form, or
a name that is a domain name
returns 0 if not found, or
an IP address in network byte order
gets an IP address by name where name can be a string that is an IP address in dotted form or a name that is a domain name returns 0 if not found or an IP address in network byte order
long bip_getaddrbyname(
    const char *host_name)
{
    struct hostent *host_ent;
    if ((host_ent = gethostbyname(host_name)) == NULL)
        return 0;
    return *(long *) host_ent->h_addr;
}
long bip_getaddrbyname ( const char * host_name ) { struct hostent * host_ent ; if ( ( host_ent = gethostbyname ( host_name ) ) == NULL ) return 0 ; return * ( long * ) host_ent -> h_addr ; }
gets an IP address by name, where name can be a
string that is an IP address in dotted form, or
a name that is a domain name
returns 0 if not found, or
an IP address in network byte order
gets an IP address by name where name can be a string that is an IP address in dotted form or a name that is a domain name returns 0 if not found or an IP address in network byte order