OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [doc/] [inet_addr.man] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
NAME
2
       inet_aton, inet_addr, inet_ntoa -  Internet  address
3
       manipulation routines
4
 
5
SYNOPSIS
6
       #include <network.h>
7
 
8
       int inet_aton(const char *cp, struct in_addr *inp);
9
 
10
       unsigned long int inet_addr(const char *cp);
11
 
12
       char *inet_ntoa(struct in_addr in);
13
 
14
DESCRIPTION
15
       inet_aton() converts the Internet host address cp from the
16
       standard numbers-and-dots notation into  binary  data  and
17
       stores  it  in the structure that inp points to. inet_aton
18
       returns nonzero if the address is valid, zero if not.
19
 
20
       The  inet_addr()  function  converts  the  Internet   host
21
       address cp from numbers-and-dots notation into binary data
22
       in  network  byte  order.   If  the  input   is   invalid,
23
       INADDR_NONE (usually -1) is returned.  This is an obsolete
24
       interface to inet_aton, described immediately above; it is
25
       obsolete  because -1 is a valid address (255.255.255.255),
26
       and inet_aton provides a cleaner  way  to  indicate  error
27
       return.
28
 
29
       The   inet_ntoa()  function  converts  the  Internet  host
30
       address in given in network byte  order  to  a  string  in
31
       standard   numbers-and-dots   notation.    The  string  is
32
       returned in a statically allocated  buffer,  which  subse­
33
       quent calls will overwrite.
34
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.