Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 78ad68e7dfdebe82ce9af12b4b4b9987 > files > 10

camlmix-1.3.1-2.mga4.x86_64.rpm

let _ =
  match Sys.argv with
      [| _; first; last; age_s |] -> 
	let buf = Buffer.create 1000 in
	let print = Buffer.add_string buf in
	Dynamic2.render ~print (first, last, int_of_string age_s);
	let contents = Buffer.contents buf in
	print_string (String.uppercase contents)

    | _ -> prerr_string "Usage: dynamic2 firstname lastname age\n"; exit 1