Back to index

glibc  2.9
Functions | Variables
inet_ntoa.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>

Go to the source code of this file.


char * inet_ntoa (struct in_addr in)


static __thread char buffer [18]

Function Documentation

char* inet_ntoa ( struct in_addr  in)

Definition at line 32 of file inet_ntoa.c.

  unsigned char *bytes = (unsigned char *) &in;
  __snprintf (buffer, sizeof (buffer), "%d.%d.%d.%d",
             bytes[0], bytes[1], bytes[2], bytes[3]);

  return buffer;

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

__thread char buffer[18] [static]

Definition at line 28 of file inet_ntoa.c.