Compression that can be used with mpz_*_raw

Torbjorn Granlund tg at swox.com
Wed Jun 16 01:01:53 CEST 2004


David McKen <dmlmcken at comcast.net> writes:

  >>It seems there is an extra byte written after every number,
  >>this byte has the value of '0A' in hex.
  >>
  >
  >No.  If that's happening it's a bug.

After each number you execute this statement:
  
      fputc('\n',bin_file);

That explains the 0xA you're seeing in the output.  In ASCII,
newline is encoded as the value 10 (A in hex).

-- 
Torbjörn


More information about the gmp-discuss mailing list