ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
option_parsed_value_t Union Reference

Scratch storage for the scalar value produced while parsing one option. More...

Data Fields

char str_value [256]
int int_value
bool bool_value
float float_value
double double_value

Detailed Description

Scratch storage for the scalar value produced while parsing one option.

The active member is selected by the option type: strings use the bounded str_value array, numeric options use an integer or floating-point member, and boolean flags use bool_value. The config parser copies the selected value into options_t; this union is never retained after that write.

Definition at line 143 of file options/config/config.c.

Field Documentation

◆ bool_value

bool option_parsed_value_t::bool_value

Definition at line 146 of file options/config/config.c.

◆ double_value

double option_parsed_value_t::double_value

Definition at line 148 of file options/config/config.c.

◆ float_value

float option_parsed_value_t::float_value

Definition at line 147 of file options/config/config.c.

◆ int_value

int option_parsed_value_t::int_value

Definition at line 145 of file options/config/config.c.

◆ str_value

char option_parsed_value_t::str_value[256]

Definition at line 144 of file options/config/config.c.


The documentation for this union was generated from the following file: