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

Go to the source code of this file.

Functions

void explain_buffer_accept4_flags (explain_string_buffer_t *sb, int flags)
int explain_accept4_flags_parse_or_die (const char *text, const char *caption)

Function Documentation

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

The explain_accept4_flags_parse_or_die function is used to convert a text string into an accept4() flags value.

Parameters:
textThe text to be converted.
captionAn extra caption for error messages.
Returns:
the parsed value

Definition at line 51 of file accept4_flags.c.

void explain_buffer_accept4_flags ( explain_string_buffer_t sb,
int  flags 
)

The explain_buffer_accept4_flags function may be used to print a representation of the accept4() flags argument.

Parameters:
sbThe string buffer to print into.
flagsThe accept4() flags value to be printed.

Definition at line 44 of file accept4_flags.c.