Next: Basic allocation functions
Up: Feature allocation and input
Previous: Feature allocation and input
  Contents
The following functions are used to load data from a file:
- int ReadSPData(data_t **, FILE *);
- int LoadSPData(data_t **, flag_t, FILE *);
The difference between those two functions is that the later also
makes conversions. Actually, the second argument of LoadSPData() is the qualifier that the returned data should have.
Therefore, LoadSPData() first invoke ReadSPData() and
then convert the data using the ConvertData() routine. An
error is returned if the conversion is impossible. The conversion
function (int ConvertData(data_t **,data_t *,flag_t)), is
in charge of simple conversions such as subtracting the long term
mean, adding the and coefficients ...
The output function is:
- int WriteSPData(data_t *, FILE *);
Guillaume Gravier
2003-05-07