nec2++
2.1.1
src
misc.h
1
#pragma once
2
3
#include <stdio.h>
4
#include <istream>
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
int
load_line(
char
*buff, std::istream& is );
Generated by
1.9.8