Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenunix_func.c
Go to the documentation of this file.
00001 #include <string.h> 00002 #include <winsock2.h> 00003 #include <windows.h> 00004 #include <io.h> 00005 00006 const char * 00007 WSAAPI 00008 inet_ntop (int af, 00009 const void *src, 00010 char *dst, 00011 size_t cnt) 00012 { 00013 struct in_addr in; 00014 char *text_addr; 00015 00016 if (af == AF_INET) 00017 { 00018 memcpy(&in.s_addr, src, sizeof(in.s_addr)); 00019 text_addr = inet_ntoa(in); 00020 if (text_addr && dst) 00021 { 00022 strncpy(dst, text_addr, cnt); 00023 return dst; 00024 } 00025 } 00026 00027 return 0; 00028 } 00029 Generated on Sun May 27 2012 04:26:06 for ReactOS by
1.7.6.1
|