nec2++  1.7.0
misc.h
1 #ifndef __MISC__
2 #define __MISC__
3 
4 #include <stdio.h>
5 #include "math_util.h"
6 
7 /* carriage return and line feed */
8 #define CR 0x0d
9 #define LF 0x0a
10 
11 /* max length of a line read from input file */
12 #define LINE_LEN 132
13 
14 /* usage()
15  *
16  * prints usage information
17  */
18 void usage(void);
19 
20 /* Returns process time (user+system) BUT in _msec_ */
21 void secnds( nec_float *x);
22 
23 /* load_line()
24  *
25  * Loads a line from a file, aborts on failure. Lines beginning
26  * with a '#' are ignored as comments. At the end of file EOF is
27  * returned.
28  */
29 int load_line( char *buff, FILE *pfile );
30 
31 
32 
33 #endif /* __MISC__ */