librnr/examples/example_config.c
static void CmdGetd(int argc, char *argv[])
{
  double  fVal;

  CHKARGS(argc, 2);
  CHKCFG();

  if( ConfigGetDouble(TheConfig, argv[1], argv[2], &fVal) != OK )
  {
    printf("Error: failed to get/convert\n");
  }
  else
  {
    printf("%s: [%s]: %s=%f\n", ConfigDbGetName(TheConfig),
      argv[1], argv[2], fVal);
  }
}
/*!
 * \brief Get configuration value string converting to double.
 *
 * \param argc    Command argument count.
 * \param argv    Array of arguments.
 */
\brief Get configuration value string converting to double.
\param argc    Command argument count.
\param argv    Array of arguments.
\ brief Get configuration value string converting to double . \ param argc Command argument count . \ param argv Array of arguments .
static void CmdGetd(int argc, char *argv[])
{
  double  fVal;
  CHKARGS(argc, 2);
  CHKCFG();
  if( ConfigGetDouble(TheConfig, argv[1], argv[2], &fVal) != OK )
  {
    printf("Error: failed to get/convert\n");
  }
  else
  {
    printf("%s: [%s]: %s=%f\n", ConfigDbGetName(TheConfig),
      argv[1], argv[2], fVal);
  }
}
static void CmdGetd ( int argc , char * argv [ ] ) { double fVal ; CHKARGS ( argc , 2 ) ; CHKCFG ( ) ; if ( ConfigGetDouble ( TheConfig , argv [ 1 ] , argv [ 2 ] , & fVal ) != OK ) { printf ( " \n " ) ; } else { printf ( " \n " , ConfigDbGetName ( TheConfig ) , argv [ 1 ] , argv [ 2 ] , fVal ) ; } }
\brief Get configuration value string converting to double.
\ brief Get configuration value string converting to double .