Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 9a77d8ae5217da605d9a30977cff2639 > files > 10

camlmix-1.3.1-4.mga5.i586.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