autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question regarding sscanf() vs. off_t and similar


From: Ben Pfaff
Subject: Re: Question regarding sscanf() vs. off_t and similar
Date: Thu, 14 Sep 2006 09:19:42 -0700
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Philipp Marek <address@hidden> writes:

> On Thursday 14 September 2006 14:49 Eric Blake wrote:
>> Gnulib provides umaxtostr.c, which is a convenient way of printing any
>> integer of unknown width:
>>
>> char buf[INT_BUFSIZE_BOUND (uintmax_t)];
>> sprintf("%s %s", umaxtostr(ino, buf), name);
> But then I'd need a few of these buffers in a sprintf() call with 15 
> arguments, and if umaxtostr() is not available on solaris etc. I can't use 
> it ...

If you use Gnulib, then umaxtostr will be available everywhere.
-- 
"Writing is easy.
 All you do is sit in front of a typewriter and open a vein."
--Walter Smith





reply via email to

[Prev in Thread] Current Thread [Next in Thread]