librnr/examples/example_config.c
static void CmdGets(int argc, char *argv[])
{
  const char  *sVal;

  CHKARGS(argc, 2);
  CHKCFG();

  if( (sVal = ConfigGetStr(TheConfig, argv[1], argv[2])) == NULL )
  {
    printf("Error: failed to get\n");
  }
  else
  {
    printf("%s: [%s]: %s=%s\n", ConfigDbGetName(TheConfig),
      argv[1], argv[2], sVal);
  }
}
/*!
 * \brief Get configuration value string.
 *
 * \param argc    Command argument count.
 * \param argv    Array of arguments.
 */
\brief Get configuration value string.
\param argc    Command argument count.
\param argv    Array of arguments.
\ brief Get configuration value string . \ param argc Command argument count . \ param argv Array of arguments .
static void CmdGets(int argc, char *argv[])
{
  const char  *sVal;
  CHKARGS(argc, 2);
  CHKCFG();
  if( (sVal = ConfigGetStr(TheConfig, argv[1], argv[2])) == NULL )
  {
    printf("Error: failed to get\n");
  }
  else
  {
    printf("%s: [%s]: %s=%s\n", ConfigDbGetName(TheConfig),
      argv[1], argv[2], sVal);
  }
}
static void CmdGets ( int argc , char * argv [ ] ) { const char * sVal ; CHKARGS ( argc , 2 ) ; CHKCFG ( ) ; if ( ( sVal = ConfigGetStr ( TheConfig , argv [ 1 ] , argv [ 2 ] ) ) == NULL ) { printf ( " \n " ) ; } else { printf ( " \n " , ConfigDbGetName ( TheConfig ) , argv [ 1 ] , argv [ 2 ] , sVal ) ; } }
\brief Get configuration value string.
\ brief Get configuration value string .