Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Printing text with holes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brian Hurt <bhurt@s...>
Subject: Re: [Caml-list] Printing text with holes
On Mon, 29 Sep 2003, Fred Yankowski wrote:

> On Mon, Sep 29, 2003 at 10:52:34PM +0100, Richard Jones wrote:
> > On this one small point, people who have been using gcc have had
> > type safe printf/scanf for at least the last 15 years.
> 
> What do you mean?  Compiling the following with gcc 2.95.4 and
> executing it causes a seg fault on my Linux 2.4.20 system:
> 
> 	main() {  printf("%s", 'a'); }
> 
> 

It spits out warnings, not errors, if you add the -Wformat (or, 
alternatively, the -Wall) option to your compile flags.

Brian


-------------------
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