limb 0.2.0

2024-01-09

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.

limb 0.1.0
2023-07-24
obuffer_parse_level(3)