Initialization
Niels Möller
nisse at lysator.liu.se
Wed Jan 21 11:36:22 CET 2004
Rahul S <srahul at csa.iisc.ernet.in> writes:
> Does anyone know how to check if a 'mpz_t' variable has been
> initialized or not.
In general, you can't do that. For example, mpz_clear turns an
initialized mpz_t into an uninitialized one, but if doesn't change a
single bit inside the mpz.
It's not much different from other types of variables. It's not
possible, in general, to check if an int variable has been initialized
or not.
/Niels
More information about the gmp-discuss
mailing list