English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re: [Caml-list] Format question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-07 (00:09)
From: Oleg <oleg_inconnu@m...>
Subject: Re: [Caml-list] Format question
Oleg wrote: 

>
> Is it possible to define a printf that automatically flushes stdout?
>

I figured it out:

let my_printf (x : ('a, out_channel, unit) format) = 
   let tmp = Printf.printf x in flush stdout; tmp;;

Oleg
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners