On Wed, Jun 2, 2010 at 2:57 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:
>
> On Jun 1, 2010, at 9:01 PM, Ian Schorr wrote:
>
> If you want the code to be portable, you'd have to hope that Microsoft provides the C99 PRI[doux]64 macros, even though Visual Studio doesn't claim to support C99, and use them, as per Eloy Paris' suggestion, or you'd have to define them yourself and use #ifdefs to select different definitions for different platforms (if you care about, for example, fairly old versions of *BSD, it might be complicated, but I think on any reasonably modern UN*X %ll[doux] would work; on Windows, it won't work - it's something like %I64[doux]).
>
> This means that anything could happen.
As you mention later, MS Visual Studio 2008 does not include those
macros. From the sounds of it, regardless of my exact problem (which
I'm guessing is in this general area anyway), I'm probably better off
abandoning sprintf altogether?