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

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



On Sat, Mar 19, 2005 at 01:12:39PM +0100, Mads Martin Joergensen wrote:
> * TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx> [Mar 19. 2005 08:22]:
> > Hi,
> > 
> > Is it Okay to sscanf (x, "%u", &(uint64_t)) ?
> > I got a warning:
> >     imap.c:638: warning: unsigned int format,
> >     different type arg (arg 3)
> 
> How about sscanf (x, "%lu", &(uint64_t)); ?

No.
uint64_t can be unsigned int, unsigned long, or unsigned long long.

Wait for a patch by T.G.

-- 
tamo