-------- Original Message --------
Subject: Re: [Caml-list] Calling OCaml from C - nothing shown on stdout
From: David Allsopp <dra-n...@metastack.com>
To: 'Andreas Sommer' <andi...@web.de>, 'caml-list@yquem.inria.fr'
<caml-list@yquem.inria.fr>
Date: 29/06/2010 13:18
2. Insert a flush stdout statement after each Printf.printf call. Better,
create another function using Printf.kprintf which flushes stdout each time:
let flushed_printf x = Printf.kprintf (fun s -> print_string s; flush
stdout) in
flushed_printf "%s" "Finished with..."
Or use "%!" in your string format to flush.
Salutations
Matt
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs