libexplain  1.4.D001
Functions
libexplain/buffer/sockopt_level.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_sockopt_level (explain_string_buffer_t *sb, int data)
int explain_parse_sockopt_level_or_die (const char *text, const char *caption)

Function Documentation

The explain_buffer_sockopt_level function may be used to print a representation of a sockopt_level structure.

Parameters:
sbThe string buffer to print into.
dataThe sockopt level value to be printed.

Definition at line 165 of file sockopt_level.c.

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

The explain_parse_sockopt_level_or_die functions is used to parse a text string into a sockopt level value.

Parameters:
textThe text to be parsed.
captionextra information for error messages
Returns:
The sokopt level value. On error it prints a fatal error message and exits.

Definition at line 172 of file sockopt_level.c.