summaryrefslogtreecommitdiff
path: root/anim/tools/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'anim/tools/hello.c')
-rw-r--r--anim/tools/hello.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/anim/tools/hello.c b/anim/tools/hello.c
new file mode 100644
index 0000000..8f3bb7d
--- /dev/null
+++ b/anim/tools/hello.c
@@ -0,0 +1,11 @@
+#include <fcntl.h>
+#include <unistd.h>
+
+int main(void) {
+ char buf[32];
+ int f = open("note", 0);
+ int n = read(f, buf, 32);
+ close(f);
+ write(1, buf, n);
+ return 0;
+}