All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
timestr.c File Reference
#include <freeradius-devel/radiusd.h>
#include <ctype.h>
+ Include dependency graph for timestr.c:

Go to the source code of this file.

Macros

#define DAYMIN   (24*60)
 
#define timestr_debug   if (0) printf
 
#define val(x)   (( (x) < 48 || (x) > 57) ? 0 : ((x) - 48))
 
#define WEEKMIN   (24*60*7)
 

Functions

static int day_fill (char *bitmap, char const *tm)
 
static int hour_fill (char *bitmap, char const *tm)
 
static int strcode (char const **str)
 
int timestr_match (char const *, time_t)
 
static int week_fill (char *bitmap, char const *tm)
 

Variables

static char const * days []
 

Macro Definition Documentation

#define DAYMIN   (24*60)

Definition at line 35 of file timestr.c.

#define timestr_debug   if (0) printf

Definition at line 43 of file timestr.c.

#define val (   x)    (( (x) < 48 || (x) > 57) ? 0 : ((x) - 48))

Definition at line 37 of file timestr.c.

#define WEEKMIN   (24*60*7)

Definition at line 36 of file timestr.c.

Function Documentation

static int day_fill ( char *  bitmap,
char const *  tm 
)
static

Definition at line 128 of file timestr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int hour_fill ( char *  bitmap,
char const *  tm 
)
static

Definition at line 74 of file timestr.c.

+ Here is the caller graph for this function:

static int strcode ( char const **  str)
static

Definition at line 49 of file timestr.c.

+ Here is the caller graph for this function:

int timestr_match ( char const *  tmstr,
time_t  t 
)

Definition at line 199 of file timestr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int week_fill ( char *  bitmap,
char const *  tm 
)
static

Definition at line 177 of file timestr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char const* days[]
static
Initial value:
=
{ "su", "mo", "tu", "we", "th", "fr", "sa", "wk", "any", "al" }

Definition at line 32 of file timestr.c.