libexplain  1.4.D001
Functions
libexplain/buffer/lseek_whence.h File Reference

Go to the source code of this file.

Functions

void explain_buffer_lseek_whence (struct explain_string_buffer_t *sb, int whence)
int explain_lseek_whence_parse_or_die (const char *text, const char *caption)

Function Documentation

void explain_buffer_lseek_whence ( struct explain_string_buffer_t sb,
int  whence 
)

The explain_buffer_lseek_whence function may be used to form a human readable representation of an lseek when value.

Parameters:
sbthe string buffer in which to write the whens symbol
whencethe value to be decoded

Definition at line 48 of file lseek_whence.c.

int explain_lseek_whence_parse_or_die ( const char *  text,
const char *  caption 
)

The explain_lseek_whence_parse function may be used to parse a text string into an lseek whence value. It may be symbolic or numeric. If an error occurs, will print a diagnostic and exit.

Parameters:
textThe text string to be parsed.
captionan additional caption to add to the error message.
Returns:
an lseek whence value

Definition at line 61 of file lseek_whence.c.