libexplain
1.4.D001
|
#include <libexplain/ac/assert.h>
#include <libexplain/ac/ctype.h>
#include <libexplain/ac/stdio.h>
#include <libexplain/ac/stdlib.h>
#include <libexplain/ac/string.h>
#include <libexplain/buffer/time_t.h>
#include <libexplain/output.h>
#include <libexplain/sizeof.h>
Go to the source code of this file.
Defines | |
#define | YEAR_BIT (1 << 0) |
#define | MONTH_BIT (1 << 1) |
#define | MDAY_BIT (1 << 2) |
#define | HOUR_BIT (1 << 3) |
#define | MIN_BIT (1 << 4) |
#define | SEC_BIT (1 << 5) |
Functions | |
static int | all_digits (const char *text) |
static unsigned | pull (const char *text, size_t len) |
static int | correct_year (const struct tm *build, int year) |
static time_t | explain_parse_time_t (const char *text) |
static time_t | explain_parse_time_t_on_error (const char *text, const char *caption) |
time_t | explain_parse_time_t_or_die (const char *text, const char *caption) |
static int all_digits | ( | const char * | text | ) | [static] |
static int correct_year | ( | const struct tm * | build, |
int | year | ||
) | [static] |
static time_t explain_parse_time_t | ( | const char * | text | ) | [static] |
static time_t explain_parse_time_t_on_error | ( | const char * | text, |
const char * | caption | ||
) | [static] |
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.
text | The text to be parsed to extract a permission mode value. |
caption | additional text to add to the start of the error message |