HGE::Ini_GetInt

Reads an integer value from initialization file.

int Ini_GetInt(
  const char *section,
  const char *name,
  int def_val
);

Parameters

section
Initialization file section name.
name
Key name.
def_val
Default value.

Return value

Returns the value read from initialization file. If the file, section or key are not found, returns default value.

Remarks

HGE_INIFILE system state must be set before calling this function. The name of the section is case-independent.

Requirements

Header: hge.h
Import library: hge.lib

See also

Ini_SetInt, Ini_SetFloat, Ini_GetFloat, Ini_SetString, Ini_GetString