swig/SWIG/Examples/ocaml/stl/runme.ml
Art Yerkes 2949c006d4 Added stl example.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-21 16:25:30 +00:00

12 lines
254 B
OCaml

(* This example was mostly lifted from the guile example directory *)
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