<<< Date Index >>>     <<< Thread Index >>>

Re: sscanf (x, "%u", &(uint64_t))



On Sat, Mar 19, 2005 at 09:23:36PM +0900, Tamotsu Takahashi wrote:
> On Sat, Mar 19, 2005 at 01:12:39PM +0100, Mads Martin Joergensen wrote:
> > 
> > How about sscanf (x, "%lu", &(uint64_t)); ?
> 
> No.
> uint64_t can be unsigned int, unsigned long, or unsigned long long.

The portable call is:
    sscanf (x, "%" SCNu64, &(uint64_t));

        David

-- 
David Laight: david@xxxxxxxxx