obuffer_parse_level(3)
limb manual
obuffer_parse_level(3)
NAME
obuffer_parse_level - parse a string representing an output level
SYNOPSIS
#include <limb/obuffer.h>
u8 obuffer_parse_level(const char *str, size_t len)
DESCRIPTION
The obuffer_parse_level
() function will scan the content of str
up to len
byte, looking for an output level.
Recognized strings are, in order :
- silent
- quiet
- normal
- verbose
- debug
- maximum
Matching can be partial, according to the rule of byte_get_match(3).
RETURN VALUE
The obuffer_parse_level
() function returns the output level value on success.
Otherwise it returns (u8) -1.