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

Go to the source code of this file.

Functions

void explain_buffer_addrinfo_flags (explain_string_buffer_t *sb, int flgs)
int explain_parse_addrinfo_flags_or_die (const char *text, const char *captn)

Function Documentation

The explain_buffer_addrinfo_flags function may be used to

Parameters:
sbThe string buffer to print into.
flgsthe addrinfo.ai_flags value to be printed

Definition at line 63 of file addrinfo_flags.c.

int explain_parse_addrinfo_flags_or_die ( const char *  text,
const char *  captn 
)

The explain_parse_addrinfo_flags_or_die function may be used to parse a tet string into a addrinfo.ai_flags value. On error, prints diagnostic and exits EXIT_FAILURE.

Parameters:
textThe text to be parsed.
captnAdditional text for fron of error message
Returns:
flags value

Definition at line 70 of file addrinfo_flags.c.