-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCOMP2AGE.h
executable file
·48 lines (40 loc) · 1.12 KB
/
COMP2AGE.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/***********/
/* Defines */
/***********/
#define kMaxLineLength 200
#define kZeroByte 0
/***********************/
/* Global Definitions */
/***********************/
struct fileData *gFirstPtr, *gLastPtr;
FILE *ifp, *ofp;
char gInputFileName[32] , gOutputFileName[32]; /*Macintosh File System erlaubt nur 32 Zeichen pro File */
/***********************/
/* Struct Declarations */
/***********************/
struct fileData
{
char dataLine[ kMaxLineLength + 1 ];
/* char convLine[ kMaxLineLength + 1 ];
wird bei comberror nicht verwendet */
struct fileData *next;
};
/*struct unk
{
float L_l, L_u, I_l, I_u, I_pk, t_bg, t_pk;
int no;
};
*/
/********************************/
/* Function Prototypes - main.c */
/********************************/
void InitVars( void );
void ConvertData( void );
void AddToList( struct fileData *curPtr );
int ReadMoreFiles( void );
char *MallocAndCopy( char *line );
void HandleInputFile( void );
char ReadStructFromFile( FILE *fp, struct fileData *infoPtr );
double ApaAge( double, double, double);
double CalcThStar( double, double, double);
void Flush( void );