home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
forum16.lzh
/
SOFTWARE
/
C
/
DIV_UTILITIES
/
misc.h
< prev
next >
Wrap
Text File
|
1991-03-24
|
1KB
|
42 lines
/*********************************************************************
Module description of misc.h:
Provides some useful macros and functions.
----------------------------------------------------------------------
shorthand, name and address of authors:
MM M. Moser, Jakob-Brucker-Str. 15, 8950 Kaufbeuren
----------------------------------------------------------------------
version, author, date and report:
1.0 MM 27.01.91 initial version
----------------------------------------------------------------------
pecularities:
none
*********************************************************************/
/********** include files **********/
#include <errno.h>
/********** global definitions **********/
#define MaxStrLen 256
/********** global macros **********/
/* abort program with error message */
#define ErrorExit(s) \
exit(_errmsg(errno, (s)))
/* abort program with error message, control string s, parameter n */
#define ErrExit(s, n) \
exit(_errmsg(errno, (s), (n)))
/* read line in buffer (char *) b and extract value p according to */
/* control string c */
#define ScanLn(b, c, p) \
scanf("%s", (b)); \
sscanf((b), (c), (p));
/*************************** end of file ****************************/