librnr/examples/example_config.c
static void CmdSectDelete(int argc, char *argv[])
{
  ConfigSection_T *pSect;

  CHKARGS(argc, 1);
  CHKCFG();

  if( (pSect = ConfigSectionGet(TheConfig, argv[1])) == NULL )
  {
    printf("Error: failed to delete section\n");
  }
  else
  {
    ConfigSectionDelete(TheConfig, pSect);
    printf("%s: [%s] deleted\n", ConfigDbGetName(TheConfig), argv[1]);
  }
}
/*!
 * \brief Delete entier configuration db section.
 *
 * \param argc    Command argument count.
 * \param argv    Array of arguments.
 */
\brief Delete entier configuration db section.
\param argc    Command argument count.
\param argv    Array of arguments.
\ brief Delete entier configuration db section . \ param argc Command argument count . \ param argv Array of arguments .
static void CmdSectDelete(int argc, char *argv[])
{
  ConfigSection_T *pSect;
  CHKARGS(argc, 1);
  CHKCFG();
  if( (pSect = ConfigSectionGet(TheConfig, argv[1])) == NULL )
  {
    printf("Error: failed to delete section\n");
  }
  else
  {
    ConfigSectionDelete(TheConfig, pSect);
    printf("%s: [%s] deleted\n", ConfigDbGetName(TheConfig), argv[1]);
  }
}
static void CmdSectDelete ( int argc , char * argv [ ] ) { ConfigSection_T * pSect ; CHKARGS ( argc , 1 ) ; CHKCFG ( ) ; if ( ( pSect = ConfigSectionGet ( TheConfig , argv [ 1 ] ) ) == NULL ) { printf ( " \n " ) ; } else { ConfigSectionDelete ( TheConfig , pSect ) ; printf ( " \n " , ConfigDbGetName ( TheConfig ) , argv [ 1 ] ) ; } }
\brief Delete entier configuration db section.
\ brief Delete entier configuration db section .