keystore_lib/src/util/ksutil.cpp
int errApi(int res, const char *apiName)
{
  if (res < 0)
  {
    fprintf(stderr, "error: %s returned %d\n", apiName, res);
  }

  return res < 0;
}
/*
 * Check if string is as expected
 * @param res error code
 * @param apiName API name
 * @returns 0 or code below 0
 */
Check if string is as expected
@param res error code
@param apiName API name
@returns 0 or code below 0
Check if string is as expected @param res error code @param apiName API name @returns 0 or code below 0
int errApi(int res, const char *apiName)
{
  if (res < 0)
  {
    fprintf(stderr, "error: %s returned %d\n", apiName, res);
  }
  return res < 0;
}
int errApi ( int res , const char * apiName ) { if ( res < 0 ) { fprintf ( stderr , " \n " , apiName , res ) ; } return res < 0 ; }
Check if string is as expected
 @param res error code
 @param apiName API name
 @returns 0 or code below 0
Check if string is as expected @param res error code @param apiName API name @returns 0 or code below 0