libexplain  1.4.D001
Functions | Variables
libexplain/buffer/prio_which.c File Reference
#include <libexplain/ac/sys/time.h>
#include <libexplain/ac/sys/resource.h>
#include <libexplain/buffer/prio_which.h>
#include <libexplain/parse_bits.h>

Go to the source code of this file.

Functions

void explain_buffer_prio_which (explain_string_buffer_t *sb, int value)
int explain_parse_prio_which_or_die (const char *text, const char *caption)

Variables

static struct
explain_parse_bits_table_t 
table []

Function Documentation

void explain_buffer_prio_which ( explain_string_buffer_t sb,
int  value 
)

The explain_buffer_prio_which function may be used to print a representation of a getpriority which value.

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

Definition at line 41 of file prio_which.c.

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

The explain_parse_prio_which_or_die function is used to parse the given text op extract a getpriority which value.

Parameters:
textThe text to be parsed. of this is a command line argument.
captionAdditional information to make the error message more informatiove.
Returns:
getpriority which value
Note:
if a pare error occurs, this function does not returns. But rather exits EXIT_FAILUE.

Definition at line 48 of file prio_which.c.


Variable Documentation

struct explain_parse_bits_table_t table[] [static]
Initial value:
{









}

Definition at line 26 of file prio_which.c.