input_parse_string()

Updated: April 19, 2023

Parse an option of the type string

Synopsis:

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

Arguments:

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

Library:

libinputevents

Returns:

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