home *** CD-ROM | disk | FTP | other *** search
- #define STRIP(x) (x[strlen(x)-1] = '\0')
- #ifndef NULL
- #define NULL 0L
- #endif
- #define TIMESTAMP time(NULL)
- #define FREE_ARR(x) { int flo; for (flo=0;flo<5000;++flo) { \
- if (x[flo] != NULL) free(x[flo]); else break; } \
- free(x); }
- #define MATCH(d, p, r) ((smatch(d, p, r) || !stricmp(d, p)))
- #define TRIM_SPACES(x) (stpls(x), stpts(x))
- #define WASH(x) /* uhh.. this washes the variable */
- #define LOWERCASE(s) strlwr(strdup(s))
- #define STORE(a, b, c) { (a)->(b) = (c); WASH((a)); }
- #define OPT(v, i) v[i][0]
- #define OPTDATA(v, i) &v[i][1]
- #define INQUIRY (!strcmp(av[1], "?") || !strcmp(av[1], "-?"))
- #define FSIZE(fp) lseek(fp->_file, 0L, 2)
-