about summary refs log tree commit diff
path: root/lib/fileio.h
blob: 2a0efbbc8de24d75a01f1d4d33efd1f90a7a88c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef FILEIO_H_INCLUDED
#define FILEIO_H_INCLUDED

#include <stdio.h>

char
pm_getc(FILE * const file);

unsigned char
pm_getrawbyte(FILE * const file);

unsigned int
pm_getuint(FILE * const file);

unsigned int
pm_getraw(FILE *       const file,
          unsigned int const bytes);

void
pm_putraw(FILE *       const file,
          unsigned int const value,
          unsigned int const bytes);

#endif