bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: const char * in mpz_get_str ? + mpz_fits_schar_p


From: Kevin Ryde
Subject: Re: const char * in mpz_get_str ? + mpz_fits_schar_p
Date: Thu, 09 May 2002 11:49:50 +1000
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu)

Sylvain Pion <address@hidden> writes:
>
> I wonder why mpz_get_str takes a char *, and not a const char *.
> Is it a bug ?

No, the string is written there.

If you mean mpz_set_str, yes it takes a const char *, though the
manual says char *.  (Bit slack with "const" in the manual.)

> Second thing : what about adding mpz_fits_schar_p and mpz_fits_uchar_p ?

I guess they'd match the existing routines, do you think they'd be
useful?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]