libexplain
1.4.D001
|
#include <libexplain/ac/stdio.h>
#include <libexplain/buffer/setvbuf_mode.h>
#include <libexplain/parse_bits.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_setvbuf_mode (explain_string_buffer_t *sb, int value) |
int | explain_parse_setvbuf_mode_or_die (const char *text, const char *caption) |
Variables | |
static const explain_parse_bits_table_t | table [] |
void explain_buffer_setvbuf_mode | ( | explain_string_buffer_t * | sb, |
int | value | ||
) |
The explain_buffer_setvbuf_mode function may be used to print a representation of a setvbuf mode value.
sb | The string buffer to print into. |
value | The setvbuf mode value to be printed. |
Definition at line 34 of file setvbuf_mode.c.
int explain_parse_setvbuf_mode_or_die | ( | const char * | text, |
const char * | caption | ||
) |
The explain_parse_setvbuf_mode_or_die function is used to parse a string into a setvbuf(3) mode argument.
text | The text to be parsed. |
caption | Additional information to add to the error message. |
Definition at line 41 of file setvbuf_mode.c.
const explain_parse_bits_table_t table[] [static] |
{ { "_IOFBF", _IOFBF }, { "_IOLBF", _IOLBF }, { "_IONBF", _IONBF }, }
Definition at line 25 of file setvbuf_mode.c.