23 lines
347 B
C
23 lines
347 B
C
#ifndef _futils_h
|
|
#define _futils_h
|
|
|
|
#include "stdio.h"
|
|
|
|
/*
|
|
* return the length of a text file
|
|
*/
|
|
long file_len(FILE* file);
|
|
|
|
/*
|
|
* count the number of occurences of c in file
|
|
* starting from the current stream position
|
|
*/
|
|
long fcountc(FILE* file, char c);
|
|
|
|
/*
|
|
* peek the next value of file
|
|
*/
|
|
int fpeek(FILE* file);
|
|
|
|
#endif /* _futils_h */
|