Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] camlidl - character arrays?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brian Naylor <bwv211mail@y...>
Subject: [Caml-list] camlidl - character arrays?
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