Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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;;

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: