home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
stg_v4.lzh
/
stgnet.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-11
|
1KB
|
52 lines
#include "stgver.h"
/* other useful defines */
#define dash(x) NULLHELP(x); while(*++x && **x=='-' && *++*x) while(**x) switch(tolower(*(*x)++))
#define sprintf stringf
/* new dash processing */
#define DASH(x) NULLHELP(x); while (*++x && **x=='-' && *++*x) while (**x) \
switch(tolower(*(*x)++))
#define PARM(x) if (**x=='=') (*x)++; if (!**x && *((*x)+1)!='-') x++
#define NEXT(x) while (**x) (*x)++
/* turn '-' into '-?' for unix */
#define NULLHELP(x) if (x[1] && !strcmp(x[1],"-")) x[1]="-?"
/* DASH(argv)
{
case 'z':
PARM(argv);
if (!**argv)
no parameter;
else
parameter=*argv;
NEXT(argv);
break;
case '?':
usage();
default:
printf("Unknown option: -%s\n",*argv);
}
*/
#include "types.h"
#ifdef BOGUS
@ dc.b 0,0
@ dc.b 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
@ dc.b "StG-Net (c) 1993 by Scott t. Griepentrog",0,0,0,0,0,0,0,0
@ dc.b "Unauthorized Reproduction Prohibited",0,0,0,0,0,0,0,0,0,0,0,0
@ dc.b 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
#endif
/* pwd_rec pwd; */
#define BUF_SIZE 512
char b[BUF_SIZE]; /* temporary buffer for misc program use */
extern int errno;
#include "stglib.h"