botsense/libbotsense/bsLibError.c
const char *bsStrError(int ecode)
{
  if( ecode < 0 )
  {
    ecode = -ecode;
  }

  if( ecode >= arraysize(bsEcodeStrTbl) )
  {
    ecode = BS_ECODE_BADEC;
  }
  return bsEcodeStrTbl[ecode];
}
/*!
 * \brief Get the error string describing the \h_botsense 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 BS_ECODE_BADEC.
 *
 * \param ecode \h_botsense error code.
 *
 * \return Returns the appropriate error code string.
 */
\brief Get the error string describing the \h_botsense 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 BS_ECODE_BADEC.

\param ecode \h_botsense error code.

\return Returns the appropriate error code string.
\ brief Get the error string describing the \ h_botsense 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 BS_ECODE_BADEC . \ param ecode \ h_botsense error code . \ return Returns the appropriate error code string .
const char *bsStrError(int ecode)
{
  if( ecode < 0 )
  {
    ecode = -ecode;
  }
  if( ecode >= arraysize(bsEcodeStrTbl) )
  {
    ecode = BS_ECODE_BADEC;
  }
  return bsEcodeStrTbl[ecode];
}
const char * bsStrError ( int ecode ) { if ( ecode < 0 ) { ecode = - ecode ; } if ( ecode >= arraysize ( bsEcodeStrTbl ) ) { ecode = BS_ECODE_BADEC ; } return bsEcodeStrTbl [ ecode ] ; }
\brief Get the error string describing the \h_botsense error code.
\ brief Get the error string describing the \ h_botsense error code .