#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>

typedef struct element
{
  uint16_t value_raw;
  float value_scaled;
  char *tag;
  char *id;
  float scale;
} element;

element *pv;

int findoutthesize() { return 16; }

int main()
{
  int i;
  int size = findoutthesize();
  pv = malloc(sizeof(element) * size);

  /* and then access the elements like this */
  for (i = 0; i < size; i++)
    pv[i].scale = (float) i;
    
  for (i = 0; i < size; i++)
    printf("%f\n", pv[i].scale);      
  
  return 0;  
}
