Skip to content

silgy_read_param_int

Jurek Muszyński edited this page May 10, 2019 · 8 revisions

bool silgy_read_param_int(const char *param, int *dest)

Description

Reads integer parameter from silgy.conf.

Returns

Returns true if parameter has been found in the config file, otherwise false.

Example

static int M_someSetting=SOME_SETTING_DEFAULT_VALUE;

// in silgy_app_init()
silgy_read_param("someSetting", &M_someSetting);
Clone this wiki locally