File: xio.h

package info (click to toggle)
nfs-utils 1%3A1.0.10-6
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,228 kB
  • ctags: 2,554
  • sloc: ansic: 24,689; sh: 9,398; makefile: 667
file content (26 lines) | stat: -rw-r--r-- 501 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
/*
 * xio.h	Declarations for simple parsing functions.
 *
 */

#ifndef XIO_H
#define XIO_H

#include <stdio.h>

typedef struct XFILE {
	FILE		*x_fp;
	int		x_line;
} XFILE;

XFILE	*xfopen(char *fname, char *type);
int	xflock(char *fname, char *type);
void	xfunlock(int lockid);
void	xfclose(XFILE *xfp);
int	xgettok(XFILE *xfp, char sepa, char *tok, int len);
int	xgetc(XFILE *xfp);
void	xungetc(int c, XFILE *xfp);
void	xskip(XFILE *xfp, char *str);
char	xskipcomment(XFILE *xfp);

#endif /* XIO_H */