libexplain  1.4.D001
Functions
libexplain/buffer/timeval.c File Reference
#include <libexplain/ac/stdlib.h>
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/stat.h>
#include <libexplain/ac/sys/time.h>
#include <libexplain/ac/time.h>
#include <libexplain/ac/limits.h>
#include <libexplain/ac/math.h>
#include <libexplain/buffer/pointer.h>
#include <libexplain/buffer/timeval.h>
#include <libexplain/buffer/time_t.h>
#include <libexplain/is_efault.h>

Go to the source code of this file.

Functions

static void print (explain_string_buffer_t *sb, const struct timeval *data)
void explain_buffer_timeval (explain_string_buffer_t *sb, const struct timeval *data)
void explain_buffer_timeval_array (explain_string_buffer_t *sb, const struct timeval *data, unsigned data_size)
void explain_parse_timeval_or_die (const char *text, const char *caption, struct timeval *result)

Function Documentation

void explain_buffer_timeval ( explain_string_buffer_t sb,
const struct timeval *  data 
)

The explain_buffer_timeval function may be used to print a representation of a struct timeval value.

Parameters:
sbThe string buffer to print into.
dataPointer to the timeval of interest.

Definition at line 78 of file timeval.c.

void explain_buffer_timeval_array ( explain_string_buffer_t sb,
const struct timeval *  data,
unsigned  data_size 
)

The explain_buffer_timeval_array function may be used to print a representation of a struct timeval array.

Parameters:
sbThe string buffer to print into.
dataPointer to the timeval of interest.
data_sizeThe number of elements in the array

Definition at line 88 of file timeval.c.

void explain_parse_timeval_or_die ( const char *  text,
const char *  caption,
struct timeval *  result 
)

Definition at line 110 of file timeval.c.

static void print ( explain_string_buffer_t sb,
const struct timeval *  data 
) [static]

Definition at line 44 of file timeval.c.