about summary refs log tree commit diff
path: root/lib/fileio.h
blob: 586c8265257e49223368e910ee12acb607c07dfe (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