int CfgAddSection

( t_config* p_Cfg, char* psz_Name,
  char* psz_Description, char* psz_Comment,
  int n_Status )

API-Function

Documentation

API-Function

add a new section to 'p_Cfg'. the new section is inserted at the current position of 'p_Cfg'. if you want to insert a section at a specific position within 'p_Cfg' you should call CfgSetToSection before.

defined in 'cconfig.c'

Parameters:
p_Cfg - pointer to a valid p_Cfg
- psz_Name of the new t_section
- psz_Description of the new t_section
- psz_Comment of the new t_section
- n_Status of the new t_section
Returns:
CFGERROR_NO_CREATE if p_Cfg does not exist.
CFGERROR_UNKNOWN if p_Cfg->n_Error != CFGERROR_OK
CFGERROR_OUT_OF_MEMORY if no memory could be allocated
CFGERROR_OK everything is in order
See Also:
CfgSetToSection

Alphabetic index



This page was generated with the help of DOC++.