bug-gmp
[Top][All Lists]
Advanced

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

mpz_set_str opinion


From: Grant Murphy
Subject: mpz_set_str opinion
Date: Wed, 02 Oct 2002 11:55:15 +0800
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2a) Gecko/20020910

my opinion is that either:
        mpz_set_str should continue to ignore whitespace
        a new function mpz_set_str_ws(?) should be introduced that does

Whilst chatting with someone on a #c channel a few things I co-wrote
a reverse digit palindrome iterator for the 196 series 'challenge'.

The code didn't use the gmp lib, but it did auto save it's state;
fprinting a dump of several million digits to a text file 80 chars wide.

The format is ideal for early testing, etc and leads to the requirement
for an arbitary base string ingestor that ignores whitespace, '\n' in this
case.

all the best ,
Grant Murphy





reply via email to

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