tranger2_str2system_flag()
#
Converts a formatted string containing system flag representations into a system_flag2_t
integer. The input string can use delimiters such as ‘|’, ‘ ‘, or ‘,’.
Prototype
system_flag2_t tranger2_str2system_flag(
const char *system_flag
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A string containing system flag values separated by ‘|’, ‘ ‘, or ‘,’. |
Return Value
Returns the corresponding system_flag2_t
integer representing the parsed system flags.
Notes
This function is useful for converting human-readable flag representations into their corresponding bitmask values.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples