libexplain  1.4.D001
Functions
libexplain/buffer/tcsetattr_options.c File Reference
#include <libexplain/ac/termios.h>
#include <libexplain/buffer/int.h>
#include <libexplain/buffer/tcsetattr_options.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_tcsetattr_options (explain_string_buffer_t *sb, int data)
int explain_parse_tcsetattr_options_or_die (const char *text, const char *caption)

Function Documentation

The explain_buffer_tcsetattr_options function may be used to print a representation of a tcsetattr options value.

Parameters:
sbThe string buffer to print into.
dataThe tcsetattr options value to be printed.

Definition at line 54 of file tcsetattr_options.c.

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

The explain_parse_tcsetattr_options_or_die function is used to parse a text string to produce a tcsetattr options value.

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

Definition at line 61 of file tcsetattr_options.c.