A89: Re: ANSI C printf


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

A89: Re: ANSI C printf




You're right, the example code doesn't work. Change it to this:

#define printf(format, args...) \
{char buffer[200]; sprintf (buffer, format, ##args); puts (buffer);}

I don't remember exactly what it is about the code that doesn't work, but
this variant does.

-Kevin

-----Original Message-----
From: Scott Dial <wrath@calc.org>
To: A89 <assembly-89@lists.ticalc.org>
Date: Thursday, April 13, 2000 9:31 PM
Subject: A89: ANSI C printf


>
>I was in the midst of porting a program to the calc when I need the
>standard printf. There is a copy/paste on the doc page for printf.h, but
>it does not compile at all... any solutions?
>
>--
>Scott "_Wrath_" Dial
>wrath@calc.org
>ICQ#3608935
>Member of TCPA - tcpa.calc.org
>_____________________________________________
>NetZero - Defenders of the Free World
>Click here for FREE Internet Access and Email
>http://www.netzero.net/download/index.html
>




Follow-Ups: