23 lines
495 B
C
23 lines
495 B
C
#ifndef FILEIO_H
|
|
#define FILEIO_H
|
|
|
|
// #include "rm_constants.h"
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
typedef FILE* RMfile;
|
|
#define RMfread(__BUFFER,__SIZE,__COUNT,__FILE) fread(__BUFFER,__SIZE,__COUNT,__FILE)
|
|
#define RMftell(__FILE) ftell(__FILE)
|
|
#define RMfseek(__FILE,__OFSET,__SEEK_TYPE) fseek(__FILE,__OFSET,__SEEK_TYPE)
|
|
#define RMgetc(__FILE) getc(__FILE)
|
|
#define RMfeof(__FILE) feof(__FILE)
|
|
|
|
|
|
|
|
int read_long(RMfile in);
|
|
int read_word(RMfile in);
|
|
int read_chars(RMfile in, char *s, int count);
|
|
|
|
#endif
|