Re: Long long int's and sprintf

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 06/17/01


Mike Stilson wrote:
>
> On Sun, Jun 17, 2001 at 02:04:12AM -0700, Peter Ajamian came up with this idea:
> > Mike Stilson wrote:
> > >
> > > unsigned long long int var; var=strtoull(from, NULL, 10);
> >
> > That's how strtoull() is supposed to work.
>
> So I see from stdlib.h.  Not having the manpage for it (yet, suppose I should
> upgrade) the first assumption was that it used the same format as the
> atoi() type calls.

Try the man page for strtoul.  It's almost identical except that it
returns an unsigned long instead of an unsigned long long.

Regards, Peter

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST