libexplain  1.4.D001
Functions
libexplain/buffer/tcflush_selector.c File Reference
#include <libexplain/ac/termios.h>
#include <libexplain/buffer/int.h>
#include <libexplain/buffer/tcflush_selector.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>
#include <libexplain/strtol.h>

Go to the source code of this file.

Functions

void explain_buffer_tcflush_selector (explain_string_buffer_t *sb, int data)
int explain_parse_tcflush_selector_or_die (const char *text, const char *caption)

Function Documentation

The explain_buffer_tcflush_selector function may be used to print a representation of a tcflush selector value.

Parameters:
sbThe string buffer to print into.
dataThe tcflush selector value to be printed.

Definition at line 54 of file tcflush_selector.c.

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

the explain_parse_tcflush_selector_or_die function is used to parse a text representation into a tcflush selector value.

Parameters:
textThe text to be parsed.
captionAdditional information for error messages.
Returns:
the int selector value on success; on failure it does not return but instead prints an error message and exits.

Definition at line 61 of file tcflush_selector.c.