Logo Search packages:      
Sourcecode: apertium version File versions  Download package

double EndianDoubleUtil::read ( FILE *  input  )  [static]

Read procedure.

input the stream to read from.
the first element readed from the current position of the stream

Definition at line 28 of file endian_double_util.cc.

  double retval;
  fread(&retval, sizeof(double), 1, input);
  char *s = reinterpret_cast<char *>(&retval);

  for(int i = sizeof(double)-1; i != -1; i--)
    fread(&(s[i]), 1, 1, input);
  return retval;

Generated by  Doxygen 1.6.0   Back to index