File: fio.h

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (49 lines) | stat: -rw-r--r-- 1,098 bytes parent folder | download | duplicates (14)
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
49
#ifndef FIO_H
#define FIO_H

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

extern FILE *FOpen(const char *path, const char *mode);
extern void FClose(FILE *fp);

extern void FSeekNextLine(FILE *fp);
extern void FSeekPastSpaces(FILE *fp);
extern void FSeekPastChar(FILE *fp, char c);

extern int FSeekToParm(FILE *fp, const char *parm, char comment, char delimiator);
extern char *FSeekNextParm(FILE *fp, char *buf, char comment, char delim);

extern int FGetValuesI(FILE *fp, int *value, int nvalues);
extern int FGetValuesL(FILE *fp, long *value, int nvalues);
extern int FGetValuesF(FILE *fp, double *value, int nvalues);
extern char *FGetString(FILE *fp);
extern char *FGetStringLined(FILE *fp);
extern char *FGetStringLiteral(FILE *fp);

extern char *FReadNextLineAlloc(FILE *fp, char comment);

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" char *FReadNextLineAllocCount(
	FILE *fp,
	char comment,
	int *line_count
);
#else
extern char *FReadNextLineAllocCount(
	FILE *fp,
	char comment,
	int *line_count
);
#endif


#ifdef __cplusplus
}
#endif

#endif	/* FIO_H */