swig/Examples/ocaml/stl/runme.ml
Art Yerkes b770c69ebc Examples updated.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-25 06:24:43 +00:00

13 lines
264 B
OCaml

(* This example was mostly lifted from the guile example directory *)
open Swig
open Example
let v = new_StringVector C_void
let _ =
for i = 0 to (Array.length Sys.argv) - 1 do
(invoke v) "push_back" (C_string Sys.argv.(i))
done
let _ = _vec_write v