Logo Search packages:      
Sourcecode: mathwar version File versions  Download package

gint ini_get_int ( const gchar *  ini_file,
const gchar *  section,
const gchar *  label,
gint  def_val 

Get the given integer value from the ini file.

ini_file The name of the INI file
section The section within the INI file
label The data label within the INI file
def_val The default value to use if the given value does not exist
The value from the INI file if it exists, def_val if it does not.

Definition at line 42 of file ini_defs.c.

   GString  *str;
   gint      rtn_val;

   str = g_string_new ("");
   g_string_sprintf (str, CONF_WITH_INT_DEF, ini_file, 
                     section, label, def_val);

   rtn_val = gnome_config_get_int (str->str);
   g_string_free (str, TRUE);

   return rtn_val;

Generated by  Doxygen 1.6.0   Back to index