ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

unix_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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.