D:/opendownloadmanager/ODM-1.x/InetFile/cURL_lib/inet_ntop.c File Reference

#include "setup.h"
#include <string.h>
#include <errno.h>
#include <curl/mprintf.h>
#include "inet_ntop.h"

Go to the source code of this file.

Defines

#define _MPRINTF_REPLACE
#define IN6ADDRSZ   16
#define INADDRSZ   4
#define INT16SZ   2

Functions

static char * inet_ntop4 (const unsigned char *src, char *dst, size_t size)
char * Curl_inet_ntop (int af, const void *src, char *buf, size_t size)


Define Documentation

#define _MPRINTF_REPLACE

Definition at line 40 of file inet_ntop.c.

#define IN6ADDRSZ   16

Definition at line 55 of file inet_ntop.c.

#define INADDRSZ   4

Definition at line 56 of file inet_ntop.c.

Referenced by inet_pton4().

#define INT16SZ   2

Definition at line 57 of file inet_ntop.c.


Function Documentation

char* Curl_inet_ntop ( int  af,
const void *  src,
char *  buf,
size_t  size 
)

Definition at line 210 of file inet_ntop.c.

References inet_ntop4(), NULL, and SET_ERRNO.

Referenced by bindlocal(), Curl_if2ip(), Curl_printable_address(), and ftp_state_use_port().

static char* inet_ntop4 ( const unsigned char *  src,
char *  dst,
size_t  size 
) [static]

Definition at line 67 of file inet_ntop.c.

References DEBUGASSERT, ENOSPC, inet_ntoa_r(), NULL, and SET_ERRNO.

Referenced by Curl_inet_ntop().


Generated on Sun May 25 00:20:07 2008 by  doxygen 1.5.6