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

Go to the source code of this file.

Functions

void explain_buffer_address_family (explain_string_buffer_t *sb, int domain)
int explain_parse_address_family_or_die (const char *text, const char *captn)

Function Documentation

void explain_buffer_address_family ( explain_string_buffer_t sb,
int  domain 
)

The explain_buffer_address_family function may be used to print a symbolic value of a socket address family value to the given string buffer.

Parameters:
sbThe string buffer to print into.
domainThe socket address family value to interpret.

Definition at line 218 of file address_family.c.

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

The explain_parse_address_family_or_die function is used to parse a string into a socket address family value. On error, whill prind diagnostic and exit EXIT_FAILURE.

Parameters:
textThe string to be parsed.
captnadditional text to add to start of error message
Returns:
the socket address family

Definition at line 231 of file address_family.c.