<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/07/1555d185cf3a3a8758041c92a7f7d521"
  from="Brian Naylor &lt;bwv211mail@y...&gt;"
  author="Brian Naylor"
  date="2002-07-19T01:11:13"
  subject="[Caml-list] camlidl - character arrays?"
  prev="2002/07/19d0749808ad9a6879697110271dcf77"
  next="2002/07/4e7fd140d3b4edee8e9e2f6acc9fd1eb"
  next-in-thread="2002/07/00e8a9febc831f40f2e606996c6fb390"
  prev-thread="2002/07/315f6c499a501e6f0b02d1bddacd4ee1"
  next-thread="2002/07/71c26b67baafe720885c555fc4a75f00"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] camlidl - character arrays?">
<msg 
  url="2002/07/1555d185cf3a3a8758041c92a7f7d521"
  from="Brian Naylor &lt;bwv211mail@y...&gt;"
  author="Brian Naylor"
  date="2002-07-19T01:11:13"
  subject="[Caml-list] camlidl - character arrays?">
<msg 
  url="2002/07/00e8a9febc831f40f2e606996c6fb390"
  from="Dmitry Bely &lt;dbely@m...&gt;"
  author="Dmitry Bely"
  date="2002-07-19T04:45:19"
  subject="Re: [Caml-list] camlidl - character arrays?">
</msg>
</msg>
</thread>

<contents>
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) &gt;= 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

</contents>

</message>

