libexplain  1.4.D001
Functions
libexplain/buffer/time_t.h File Reference
#include <libexplain/ac/time.h>
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_time_t (explain_string_buffer_t *sb, time_t value)
void explain_buffer_time_t_star (explain_string_buffer_t *sb, const time_t *data)
time_t explain_parse_time_t_or_die (const char *text, const char *caption)

Function Documentation

void explain_buffer_time_t ( explain_string_buffer_t sb,
time_t  value 
)

The explain_buffer_time_t function may be used to print a representation of a time_t value.

Parameters:
sbThe string buffer to print into.
valueThe time_t value to be printed.

Definition at line 26 of file time_t.c.

void explain_buffer_time_t_star ( explain_string_buffer_t sb,
const time_t *  data 
)

The explain_buffer_time_t function may be used to print a representation of a time_t value.

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

Definition at line 86 of file time_t.c.

time_t explain_parse_time_t_or_die ( const char *  text,
const char *  caption 
)

The explain_parse_time_t_or_die function may be used to parse a string containing a symbolic representation of a time_t value.

Parameters:
textThe text to be parsed to extract a permission mode value.
captionadditional text to add to the start of the error message
Returns:
time_t value
Note:
If there is a parse error, a fatal error message is printed, and exit(EXIT_FAILURE) is called. If there is an error, this function will not return.

Definition at line 766 of file parse.c.