input_parse_bool()

Updated: April 19, 2023

Parse an option of the type boolean

Synopsis:

#include <input/parseopts.h>
int input_parse_bool(const char *option,
                     const char *value,
                     unsigned *out)

Arguments:

option
Option of type boolean to be parsed.
value
Value of the option.
out
The boolean value of option.

Library:

libinputevents

Returns:

0 if successful, otherwise non-zero if an error occurred.