about summary refs log tree commit diff
path: root/converter/other/cameratopam/stdio_nofail.h
blob: 8f45b53754efed269e7b4537c5baedf126d9b200 (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
25
26
27
28
29
#include <stdio.h>

size_t
fread_or_eof_nofail(void * const ptr,
                    size_t const size,
                    size_t const nmemb,
                    FILE * const streamP);

void
fread_nofail(void * const ptr,
             size_t const size,
             size_t const nmemb,
             FILE * const streamP);

int
fgetc_nofail(FILE * const streamP);

int
fseek_nofail(FILE * const streamP,
             long   const offset,
             int    const whence);

long
ftell_nofail(FILE * const streamP);

char *
fgets_nofail(char * const s,
             int    const size,
             FILE * const streamP);