Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/ocaml/stl/runme.ml
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

14 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)