File: copy.ml

package info (click to toggle)
ocamlnet 4.1.9-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,024 kB
  • sloc: ml: 151,939; ansic: 11,071; sh: 2,003; makefile: 1,310
file content (13 lines) | stat: -rw-r--r-- 250 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
(* Copies from stdin to stdout *)

#use "topfind";;
#require "equeue";;

let main() =
  let e = Unixqueue.create_unix_event_system() in
  let _cp = new Uq_transfer.copier (`Unidirectional(Unix.stdin,Unix.stdout)) e in
  Unixqueue.run e
;;


main();;