summaryrefslogtreecommitdiffstats
path: root/oecho/oecho0.ml
diff options
context:
space:
mode:
Diffstat (limited to 'oecho/oecho0.ml')
-rw-r--r--oecho/oecho0.ml9
1 files changed, 9 insertions, 0 deletions
diff --git a/oecho/oecho0.ml b/oecho/oecho0.ml
new file mode 100644
index 0000000..fed5a00
--- /dev/null
+++ b/oecho/oecho0.ml
@@ -0,0 +1,9 @@
+open Arg
+open Unix
+open Scanf
+open Printf
+
+let num = Array.length Sys.argv
+let _ = if num >= 2 then
+ Printf.printf "%s\n" Sys.argv.(1)
+ else Printf.printf "\n"