home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
uccs
/
root.14
/
udk
/
usr
/
include
/
nsaddr.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-08-19
|
1KB
|
48 lines
/*
* Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved.
*
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE
* SANTA CRUZ OPERATION INC.
*
* The copyright notice above does not evidence any actual or intended
* publication of such source code.
*/
#ident "@(#)nsaddr.h 1.2"
#ifndef _NSADDR_H
#define _NSADDR_H
/*
stoa - convert string to address
atos - convert address to string
header file
*/
#define OCT 0 /* octal type */
#define HEX 1 /* hexadecimal type */
#define RAW 2 /* string type */
#define KEEP 8 /* keep protocol field */
#ifndef _SYS_TIUSER_H
#include <sys/tiuser.h>
#endif
struct address {
char *protocol;
struct netbuf addbuf;
};
#ifdef __STDC__
struct netbuf *stoa(char *, struct netbuf *);
char *atos(char *, struct netbuf *, int);
struct address *astoa(char *, struct address *);
char *aatos(char *, struct address *, int);
#else
struct netbuf *stoa();
char *atos();
struct address *astoa();
char *aatos();
#endif
#endif /* _NSADDR_H */