I second that idea to use streams instead of old C formating.
We can use ostrstream, or better, ostringstream classes

-Fred

----- Original Message -----
From: "Jon Berndt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 01, 2002 5:15 AM
Subject: RE: [Flightgear-devel] JSBSim Build Problem Under MSVC


> I'd prefer to get away from using _snprintf, snprintf, or whatever. The
> only reason we use them (IIRC) is to limit the length of an output string.
> This can be done in other ways, such as using the string class. Since they
> would not be used in performance critical areas, maybe that's an option?
>
> Jon
>
> > Does it make sense to have _snprintf() instead of snprintf()?  I tried
> > defining the function extern, but it wasn't found in the library.  I
> > suppose anther question would be, is it safe to use _snprintf() under
> > windows and snprintf() everywhere else?  FWIW, _snprintf() is defined in
> > <stdio.h>.
>
>



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to