swig/Examples/ocaml/stl/runme.ml
Art Yerkes 25d0e88ee7 swigp4-ified examples.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:53:48 +00:00

13 lines
276 B
OCaml

(* This example was mostly lifted from the guile example directory *)
open Swig
open Example
let v = new_StringVector '()
let _ =
for i = 0 to (Array.length Sys.argv) - 1 do
let str = (Sys.argv.(i)) to string in v -> push_back (str)
done
let _ = _vec_write '(v)