Cross-Platform DDI Interface for Converting Strings to 64-bit Integers [PSARC/2008/740 FastTrack timeout 12/09/2008]

Garrett D'Amore gdamore at sun.com
Mon Dec 1 17:52:04 PST 2008


Darren Reed wrote:
> I'm somewhat uncomfortable with "long long" always implying 64bits,
> or with long implying only 32 bits...
>
> I'd prefer to see the API explicitly make a point of being for
> 64bit values, either with "uint64_t *" as the final arg or it being
> called "ddi_strtou64"... but maybe the horse has already bolted
> on this one, given ddi_strtoul, and thus the best we can hope for
> is to be consistent with past "mistakes"?

Yes.  In this case, consistency with the Standard C (more or less).

Perhaps a good extension to this case would be to define ddi_strtou32(), 
ddi_strtos32(), ddi_strtou64(), and ddi_strtos64()?

    -- Garrett
>
> Darren
>




More information about the opensolaris-arc mailing list