libexplain
1.4.D001
|
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) |
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.
sb | the string buffer in which to write the whens symbol |
whence | the 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.
text | The text string to be parsed. |
caption | an additional caption to add to the error message. |
Definition at line 61 of file lseek_whence.c.