inet_addr = (char *) inet_ntoa (*(struct in_addr *)(hostp->h_addr));
inet_addr = inet_ntoa (*(struct in_addr *)(hostp->h_addr));
SmsGenerateClientID (smsConn)SmsConn smsConn;{    char hostname[256];    char address[14];    char temp[256];    char *id;    static int sequence = 0;    if (gethostname (hostname, sizeof (hostname)))	return (NULL);#if defined(TCPCONN) || defined(STREAMSCONN)    {    char* inet_addr;    char temp[4], *ptr1, *ptr2;    unsigned char decimal[4];    int i, len;    _Xgethostbynameparams hparams;    struct hostent *hostp;    if ((hostp = _XGethostbyname (hostname,hparams)) != NULL)	inet_addr = (char *) inet_ntoa (*(struct in_addr *)(hostp->h_addr));    else	return NULL;    for (i = 0, ptr1 = inet_addr; i < 3; i++)    {	ptr2 = strchr (ptr1, '.');	len = ptr2 - ptr1;	if (!ptr2 || len > 3)	    return (NULL);	strncpy (temp, ptr1, len);	temp[len] = '\0';	decimal[i] = atoi (temp);	ptr1 = ptr2 + 1;    }    decimal[3] = atoi (ptr1);    address[0] = '1';    address[1] = '\0';    for (i = 0; i < 4; i++)	strcat (address, hex_table[decimal[i]]);    }#else    return (NULL);#endif    sprintf (temp, "1%s%.13ld%.10d%.4d", address, time((Time_t*)0),        getpid (), sequence);    if (++sequence > 9999)	sequence = 0;    if ((id = malloc (strlen (temp) + 1)) != NULL)	strcpy (id, temp);    return (id);}