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 >
C/C++ Source or Header  |  1994-11-11  |  1KB  |  52 lines

  1. #include "stgver.h"
  2.  
  3. /* other useful defines */
  4. #define dash(x) NULLHELP(x); while(*++x && **x=='-' && *++*x) while(**x) switch(tolower(*(*x)++))
  5. #define sprintf stringf
  6.  
  7. /* new dash processing */
  8. #define DASH(x) NULLHELP(x); while (*++x && **x=='-' && *++*x) while (**x) \
  9.                     switch(tolower(*(*x)++))
  10. #define PARM(x) if (**x=='=') (*x)++; if (!**x && *((*x)+1)!='-') x++
  11. #define NEXT(x) while (**x) (*x)++
  12.  
  13. /* turn '-' into '-?' for unix */
  14. #define NULLHELP(x) if (x[1] && !strcmp(x[1],"-")) x[1]="-?"
  15.  
  16. /*    DASH(argv)
  17.     {
  18.     case 'z':
  19.         PARM(argv);
  20.         if (!**argv)
  21.             no parameter;
  22.         else
  23.             parameter=*argv;
  24.         NEXT(argv);
  25.         break;
  26.     case '?':
  27.         usage();
  28.     default:
  29.         printf("Unknown option: -%s\n",*argv);
  30.     }
  31. */
  32.  
  33. #include "types.h"
  34.  
  35. #ifdef BOGUS
  36. @ dc.b 0,0
  37. @ dc.b 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  38. @ dc.b "StG-Net (c) 1993 by Scott t. Griepentrog",0,0,0,0,0,0,0,0
  39. @ dc.b "Unauthorized Reproduction Prohibited",0,0,0,0,0,0,0,0,0,0,0,0
  40. @ dc.b 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  41. #endif
  42.  
  43. /* pwd_rec pwd; */
  44.  
  45. #define BUF_SIZE 512
  46.  
  47. char b[BUF_SIZE];  /* temporary buffer for misc program use */
  48.  
  49. extern int errno;
  50.  
  51. #include "stglib.h"
  52.