title: How to use OCaml Scanf module to parse a string containing integers separated by spaces WITHOUT Str
body: <p>The title basically says it all. I am aware that through the use of regexp via OCaml's Str module, this task is quite simple - however, suppose you are only allowed to use the standard library and Scanf module. I am interested in taking a string looks like this:</p>
  
  <pre><code>    "12 34 555 6 23 34 5663 234 ..."
  </code></pre>
  
  <p>And returning an array that looks like this </p>
  
  <pre><code>  [|12; 34; 555; 6; 23; 34; 5663; 234; |]
  </code></pre>
  
  <p>Can someone help me out? I found the Scanf documentation (available <a href="http://caml.inria.fr/pub/docs/manual-ocaml/libref/Scanf.html" rel="nofollow">http://caml.inria.fr/pub/docs/manual-ocaml/libref/Scanf.html</a>) to be pretty unhelpful in understanding how to use the module</p>