Converting an mpz_t to a byte array

bodrato at bodrato at
Tue Apr 3 07:54:45 CEST 2012


Il Lun, 2 Aprile 2012 7:24 pm, Matt Cheung ha scritto:
> Is there a way to convert an mpz_t to a byte array?  I'm wondering


> because if I want to use gmp to communicate values over a network I want
> to send it as a byte array.

I suggest you mpz_export, documented in the manual:



More information about the gmp-discuss mailing list