Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: code for 32/64 bit strtoul strtol strtoull strtoll Date: Tue, 31 Mar 2015 12:11:57 -0700 Organization: None to speak of Lines: 36 Message-ID: <87vbhhhthe.fsf@kst-u.example.com> References: <877ftxjjfr.fsf@kst-u.example.com> <20150331111944.760@kylheku.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c77ff4d35e33d1c939d3461ebde8dd0d"; logging-data="28634"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vQPtoxFJl2ZXzmOLnQuOd" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:4er1ZF/oaOUicuGR8Nb0VIL2/DY= sha1:BHK7E/EXl0SSfsqtOJZymQavwRQ= Xref: csiph.com comp.lang.c:59356 Richard Heathfield writes: > On 31/03/15 19:22, Kaz Kylheku wrote: >> On 2015-03-31, Richard Heathfield wrote: >>> On 31/03/15 16:06, Keith Thompson wrote: >>>> Bartc writes: >>>>> On 31/03/2015 07:44, Robert Wessel wrote: >>>> [...] >>>>>> The base may be any (integer) value 2..36. >>>>> >>>>> Sounds like ridiculous over-specification to me, because if you're >>>>> going to allow base 36, why not 136? Bases in the range 2 to 16 are >>>>> very common and useful; above 16 aren't. >>>> >>>> Base 7 is common and useful? >>> >>> Um, yes (up to a point). >>> >>> Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. >>> >>> (Admittedly its use runs out right about here.) >> >> That is not "base 7", but a modulo 7 congruence. >> >> Base 7 means we have a representation of integers based on powers >> of 7. Thus we make use of 49, 343, .... > > Yeah, there's a limit to how far you can stretch a joke before it > snaps in two. Or in seven. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"