[gambit-list] printf and the C interface

Marc Feeley feeley at iro.umontreal.ca
Fri Jun 20 09:31:59 EDT 2008


On 20-Jun-08, at 5:22 AM, Cristian Baboi wrote:

> On Thu, 19 Jun 2008 17:45:44 +0300, Christian Jaeger wrote:
>
>> Cristian Baboi wrote:
>>> 1) Why the output lines do not appear in the call order ?
>
>> Gambit does it's own buffering (it doesn't use the C stdio functions,
>> iirc). So you need to make sure output is flushed in both worlds when
>> you want it (check |force-output| in the Gambit manual, and the  
>> fflush
>> manpage for stdio).
>>
>
> Thank you. It works now.

I'll see if I can't figure out a way to have the same stdio buffering  
on Windows as the other platforms.  That will avoid such confusion.

Marc




More information about the Gambit-list mailing list