keystore_lib/src/util/ksutil.cpp
int readNumFromFile(const char *fileName, unsigned int *numptr)
{
  int res = -1;
  res = readDataFromFile(fileName, numptr, sizeof(unsigned int));
  if (res != 0)
  {
    res = -1;
  }

  return res;
}
/*
 * Read number from file
 * @param fileName file name
 * @param numptr reference to int in which number will be kept
 *
 * @returns 0 on success
 */
Read number from file
@param fileName file name
@param numptr reference to int in which number will be kept

@returns 0 on success
Read number from file @param fileName file name @param numptr reference to int in which number will be kept @returns 0 on success
int readNumFromFile(const char *fileName, unsigned int *numptr)
{
  int res = -1;
  res = readDataFromFile(fileName, numptr, sizeof(unsigned int));
  if (res != 0)
  {
    res = -1;
  }
  return res;
}
int readNumFromFile ( const char * fileName , unsigned int * numptr ) { int res = -1 ; res = readDataFromFile ( fileName , numptr , sizeof ( unsigned int ) ) ; if ( res != 0 ) { res = -1 ; } return res ; }
Read number from file
 @param fileName file name
 @param numptr reference to int in which number will be kept
Read number from file @param fileName file name @param numptr reference to int in which number will be kept