From 16cf82732affd9fe7bfc34f354ee8675b0668265 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 28 May 2020 21:25:25 -0700 Subject: 6417 --- apps/cat.mu | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 apps/cat.mu 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 +} -- cgit 1.4.1-2-gfad0