libexplain
1.4.D001
|
#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) |
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.
sb | The string buffer to print into. |
domain | The 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.
text | The string to be parsed. |
captn | additional text to add to start of error message |
Definition at line 231 of file address_family.c.