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 DAA21659; Fri, 19 Jul 2002 03:11:13 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA21655 for ; Fri, 19 Jul 2002 03:11:12 +0200 (MET DST) Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id g6J1BBT21586 for ; Fri, 19 Jul 2002 03:11:11 +0200 (MET DST) Message-ID: <20020719011110.49051.qmail@web13405.mail.yahoo.com> Received: from [63.195.80.23] by web13405.mail.yahoo.com via HTTP; Thu, 18 Jul 2002 18:11:10 PDT Date: Thu, 18 Jul 2002 18:11:10 -0700 (PDT) From: Brian Naylor Subject: [Caml-list] camlidl - character arrays? To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I am trying to use CamlIDL for a C function like the following: int foo (unsigned char [16]); If I write my CamlIDL file like this: int foo ([in,string] unsigned char s [16]); The code does a check like this: if (string_length(_v_s) >= 16) invalid argument("foo"); The problem is that this is NOT a null-terminated string - it is exactly 16 bytes of data. Is there a way to write the CamlIDL file for this function? Thanks. __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com ------------------- 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