libexplain  1.4.D001
Functions
libexplain/buffer/clockid.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_clockid (explain_string_buffer_t *sb, int value)
int explain_parse_clockid_or_die (const char *text, const char *caption)

Function Documentation

void explain_buffer_clockid ( explain_string_buffer_t sb,
int  value 
)

The explain_buffer_clockid function may be used to print a representation of a clockid value.

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

Definition at line 35 of file clockid.c.

int explain_parse_clockid_or_die ( const char *  text,
const char *  caption 
)

The explain_parse_clockid_or_die function is used to parse a text string ito a clockid value.

Parameters:
textThe text string to be parse for a timerid value.
captionadditional text for error messages
Returns:
the clockid value. Does not return on error.

Definition at line 42 of file clockid.c.