From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 60247BC69 for ; Wed, 27 Jun 2007 05:18:47 +0200 (CEST) Received: from smtp28.orange.fr (smtp28.orange.fr [80.12.242.101]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5R3IleT004755 for ; Wed, 27 Jun 2007 05:18:47 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2818.orange.fr (SMTP Server) with ESMTP id E21A97000089 for ; Wed, 27 Jun 2007 05:18:46 +0200 (CEST) Received: from [192.168.1.162] (ALagny-153-1-98-23.w90-3.abo.wanadoo.fr [90.3.145.23]) by mwinf2818.orange.fr (SMTP Server) with ESMTP id C2B037000088 for ; Wed, 27 Jun 2007 05:18:46 +0200 (CEST) X-ME-UUID: 20070627031846797.C2B037000088@mwinf2818.orange.fr Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: quoted-printable Message-Id: <0AC5F6BF-D076-4561-B015-70E41954D248@lrde.epita.fr> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed To: caml-list@inria.fr From: =?ISO-8859-1?Q?Qu=F4c_Peyrot?= Subject: precision not working properly for strings in Printf? Date: Wed, 27 Jun 2007 05:18:45 +0200 X-Mailer: Apple Mail (2.752.2) X-Miltered: at concorde with ID 4681D717.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lrde:01 printf:01 printf:01 strings:01 seems:03 unit:03 doesn't:12 should:13 print:13 type:14 epita:15 field:19 precision:20 precision:20 regards:20 It seems that the precision field doesn't work properly with the "s" =20 type in Printf.printf: # Printf.printf "%.2s" "qwerty";; qwerty- : unit =3D () This should print "qw" --=20 Best Regards, Qu=F4c=