1 struct sockaddr_in { int sin_addr; }; ConvertAddr(struct sockaddr_in * saddr,void ** addr)2static void ConvertAddr (struct sockaddr_in *saddr, void **addr) 3 { 4 *addr = (void *) &saddr->sin_addr; 5 } EnableLocalHost(struct sockaddr_in * ifa_addr)6unsigned char EnableLocalHost (struct sockaddr_in *ifa_addr) 7 { 8 unsigned char * addr; 9 ConvertAddr(ifa_addr, (void **)&addr); 10 return addr[0]; 11 } 12