1explain_fseeko_or_die(3)   Library Functions Manual   explain_fseeko_or_die(3)
2
3
4

NAME

6       explain_fseeko_or_die  -  seek  to  or  report file position and report
7       errors
8

SYNOPSIS

10       #include <libexplain/fseeko.h>
11       void explain_fseeko_or_die(FILE *fp, off_t offset, int whence);
12       int explain_fseeko_on_error(FILE *fp, off_t offset, int whence);
13

DESCRIPTION

15       The explain_fseeko_or_die function is used to call the fseeko(3) system
16       call.  On  failure  an  explanation will be printed to stderr, obtained
17       from the explain_fseeko(3) function, and then the process terminates by
18       calling exit(EXIT_FAILURE).
19
20       The explain_fseeko_on_error function is used to call the fseeko(3) sys‐
21       tem call. On failure an explanation will be printed to stderr, obtained
22       from the explain_fseeko(3) function, but still returns to the caller.
23
24       fp      The fp, exactly as to be passed to the fseeko(3) system call.
25
26       offset  The  offset,  exactly  as  to be passed to the fseeko(3) system
27               call.
28
29       whence  The whence, exactly as to be passed  to  the  fseeko(3)  system
30               call.
31

RETURN VALUE

33       The   explain_fseeko_or_die  function  only  returns  on  success,  see
34       fseeko(3) for more information. On failure, prints an  explanation  and
35       exits, it does not return.
36
37       The explain_fseeko_on_error function always returns the value return by
38       the wrapped fseeko(3) system call.
39

EXAMPLE

41       The explain_fseeko_or_die function is intended to be used in a  fashion
42       similar to the following example:
43              explain_fseeko_or_die(fp, offset, whence);
44

SEE ALSO

46       fseeko(3)
47               seek to or report file position
48
49       explain_fseeko(3)
50               explain fseeko(3) errors
51
52       exit(2) terminate the calling process
53
55       libexplain version 1.4
56       Copyright (C) 2013 Peter Miller
57
58
59
60                                                      explain_fseeko_or_die(3)
Impressum