[Coco] Microware C Compiler port

John W. Linville linville at tuxdriver.com
Wed Jan 21 21:59:08 EST 2009


On Thu, Jan 22, 2009 at 11:28:12AM +1000, Bob Devries wrote:
> John,
> do you have access to the C compiler manual?
>
> I'm assuming you have put the pflinit(); at the beginning of main()  
> (although I believe it can be anywhere provided it's ahead of the first  
> printf() that tries to print a long.
>
> The usual format to print longs is:
>    pflinit();
>
>    long x=65000;
>
>    printf("long number %ld", x);
>
> (Sorry if you already know all this.... :) )

Well, I had tried "%ld" previously, but that was before you informed me
about pflinit().  By then I had already switched it back to "%d". :-(

Changing it (back) to "%ld" in combination with calling pflinit works!
Hooray!

John

P.S.  Sometimes retro-computing can be a little _too_ retro... :-)
-- 
John W. Linville		Linux should be at the core
linville at tuxdriver.com			of your literate lifestyle.



More information about the Coco mailing list