Re: setlocale


Subject: Re: setlocale
From: Sam TH (sam@uchicago.edu)
Date: Tue Apr 17 2001 - 16:08:22 CDT


On Tue, Apr 17, 2001 at 09:50:17PM +0100, Tomas Frydrych wrote:
> > dom> setlocale(LC_NUMERIC, "C"); // set locale to C sprintf(buf,
> > dom> "%.4f", float_foo); setlocale(LC_NUMERIC, ""); // reset locale
> >
> > Bill:
> > Now *that* is my idea of a good place for a macro.
>
> I don't think the preprocessor can handle macros with variable
> parameters, but I could be wrong.

They can in C99, but we definitely don't want to assume that.
           
sam th --- sam@uchicago.edu --- http://www.abisource.com/~sam/
OpenPGP Key: CABD33FC --- http://samth.dyndns.org/key
DeCSS: http://samth.dyndns.org/decss




This archive was generated by hypermail 2b25 : Tue Apr 17 2001 - 15:56:52 CDT