From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA10057; Tue, 30 Sep 2003 00:07:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA18404 for ; Tue, 30 Sep 2003 00:07:43 +0200 (MET DST) Received: from ontosoft.com (ontosoft.com [209.101.228.108]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h8TM7g524265 for ; Tue, 30 Sep 2003 00:07:42 +0200 (MET DST) Received: (qmail 31936 invoked by uid 1001); 29 Sep 2003 22:07:40 -0000 Date: Mon, 29 Sep 2003 17:07:40 -0500 From: Fred Yankowski To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] Printing text with holes Message-ID: <20030929220740.GA31853@ontosoft.com> References: <200309292048.WAA16827@pauillac.inria.fr> <20030929215234.GA15095@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030929215234.GA15095@redhat.com> User-Agent: Mutt/1.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; yankowski:01 ontosys:01 caml-list:01 gcc:01 printf:01 scanf:01 gcc:01 2.95.4:01 printf:01 yankowski:01 ontosys:01 keyid:01 449345:01 deerpath:01 batavia:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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'); } -- Fred Yankowski fred@ontosys.com tel: +1.630.879.1312 OntoSys, Inc PGP keyID: 7B449345 fax: +1.630.879.1370 www.ontosys.com 38W242 Deerpath Rd, Batavia, IL 60510-9461, USA ------------------- 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