1getnetbyname(3z)           z88dk Programmer's Manual          getnetbyname(3z)
2
3
4

NAME

6       getnetbyname, getnetbynumber  - get network entry
7

SYNOPSIS

9       #include <net/resolv.h>
10
11       int getnetbyname(char *name);
12       char *getnetbynumber(int network, char * buf);
13

DESCRIPTION

15       The getnetbyname() function returns the standard number for the network
16       with the name name. If no network is known then NULL is returned.
17
18       The getnetbynumber() function copies into buf  (and  returns  buf)  the
19       network  matching  the  network. If no network is known then network is
20       returned in ASCII form.
21
22

RETURN VALUE

24       Detailed above.
25
26

NOTES

28       These functions use a lookup table compiled into the ZSock  kernel,  it
29       is not likely that method will change in the near future.
30
31

AUTHOR

33       Dominic Morris <dom@jb.man.ac.uk>
34
35
36
37                               18 February 2000               getnetbyname(3z)
Impressum