librnr/examples/example_config.c
static void CmdSectNew(int argc, char *argv[])
{
  CHKARGS(argc, 1);
  CHKCFG();

  if( ConfigSectionNew(TheConfig, argv[1]) == NULL )
  {
    printf("Error: failed to add section\n");
  }
  else
  {
    printf("%s: [%s] added\n", ConfigDbGetName(TheConfig), argv[1]);
  }
}
/*!
 * \brief Create new, empty configuration db section.
 *
 * \param argc    Command argument count.
 * \param argv    Array of arguments.
 */
\brief Create new, empty configuration db section.
\param argc    Command argument count.
\param argv    Array of arguments.
\ brief Create new empty configuration db section . \ param argc Command argument count . \ param argv Array of arguments .
static void CmdSectNew(int argc, char *argv[])
{
  CHKARGS(argc, 1);
  CHKCFG();
  if( ConfigSectionNew(TheConfig, argv[1]) == NULL )
  {
    printf("Error: failed to add section\n");
  }
  else
  {
    printf("%s: [%s] added\n", ConfigDbGetName(TheConfig), argv[1]);
  }
}
static void CmdSectNew ( int argc , char * argv [ ] ) { CHKARGS ( argc , 1 ) ; CHKCFG ( ) ; if ( ConfigSectionNew ( TheConfig , argv [ 1 ] ) == NULL ) { printf ( " \n " ) ; } else { printf ( " \n " , ConfigDbGetName ( TheConfig ) , argv [ 1 ] ) ; } }
\brief Create new, empty configuration db section.
\ brief Create new empty configuration db section .