diff options
-rw-r--r-- | apps/cat.mu | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/cat.mu b/apps/cat.mu new file mode 100644 index 00000000..0fb68653 --- /dev/null +++ b/apps/cat.mu @@ -0,0 +1,8 @@ +# accept a filename on the commandline, read it and print it out to screen +# only ascii right now, just like the rest of Mu + +fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { + var args/eax: (addr array (addr array byte)) <- copy _args + var n/eax: int <- length args + exit-status <- copy n +} |