[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mpz_set_str cannot handle "+3"
From: |
Kevin Ryde |
Subject: |
Re: mpz_set_str cannot handle "+3" |
Date: |
11 Dec 2000 08:13:21 +1000 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.5 |
Felix Natter <address@hidden> writes:
>
> hi,
>
> I found a little bug in gmp. Trying to scan (mpz_set_str) "+3" as an
> integer, I get 0 using mpz_t.
Alas, a leading "+" sign is not accepted. mpz_set_str will return -1
to indicate an invalid string in that case.