CogniBoost/sw/libCogniBoost/cbLibError.c
const char *cbStrError(int ecode)
{
  if( ecode < 0 )
  {
    ecode = -ecode;
  }

  if( ecode >= arraysize(cbEcodeStrTbl) )
  {
    ecode = CB_LIB_ECODE_BADEC;
  }
  return cbEcodeStrTbl[ecode];
}
/*!
 * \brief Get the error string describing the CogniBoost error code.
 *
 * The absolute value of the error code is taken prior retrieving the string.
 * An unknown or out-of-range error code will be mapped to
 * \ref CB_ECODE_BADEC.
 *
 * \param ecode CogniBoost error code.
 *
 * \return Returns the appropriate error code string.
 */
\brief Get the error string describing the CogniBoost error code.
The absolute value of the error code is taken prior retrieving the string.
An unknown or out-of-range error code will be mapped to
\ref CB_ECODE_BADEC.

\param ecode CogniBoost error code.

\return Returns the appropriate error code string.
\ brief Get the error string describing the CogniBoost error code . The absolute value of the error code is taken prior retrieving the string . An unknown or out - of - range error code will be mapped to \ ref CB_ECODE_BADEC . \ param ecode CogniBoost error code . \ return Returns the appropriate error code string .
const char *cbStrError(int ecode)
{
  if( ecode < 0 )
  {
    ecode = -ecode;
  }
  if( ecode >= arraysize(cbEcodeStrTbl) )
  {
    ecode = CB_LIB_ECODE_BADEC;
  }
  return cbEcodeStrTbl[ecode];
}
const char * cbStrError ( int ecode ) { if ( ecode < 0 ) { ecode = - ecode ; } if ( ecode >= arraysize ( cbEcodeStrTbl ) ) { ecode = CB_LIB_ECODE_BADEC ; } return cbEcodeStrTbl [ ecode ] ; }
\brief Get the error string describing the CogniBoost error code.
\ brief Get the error string describing the CogniBoost error code .