Usage of mpz_t inside of structures

Torbjorn Granlund tg at gmplib.org
Wed Jun 20 14:18:38 CEST 2012


Bruno Jiménez <brunojimen at gmail.com> writes:

  ▢_▢ Ok... Thanks a lot. I just thought that as you pass the mpz_t's to a
  function they remain changed, they would do the same if passed inside of
  a structure...
  
The mpz_t type is not a struct.

  Well, then I suppose I have to think of other way to do everything.

How about passing your structure by reference?  See any C book for how
to achieve that.

-- 
Torbjörn


More information about the gmp-discuss mailing list