diff options
author | Benji Dial <benji6283@gmail.com> | 2021-01-24 12:00:11 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-01-24 12:00:11 -0500 |
commit | bce944d1498eaa3b6940ee234c863b3548a66b37 (patch) | |
tree | ea40c087ab4f0f236aee8d158cf68550f5209f72 /src/user/dumptext | |
parent | ca731aa747214919df7b3dfe3478dbe787ce5b68 (diff) | |
download | portland-os-bce944d1498eaa3b6940ee234c863b3548a66b37.tar.gz |
graphics!
Diffstat (limited to 'src/user/dumptext')
-rw-r--r-- | src/user/dumptext/dumptext.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/user/dumptext/dumptext.c b/src/user/dumptext/dumptext.c deleted file mode 100644 index b10375c..0000000 --- a/src/user/dumptext/dumptext.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <knob/file.h> -#include <knob/user.h> - -void main(const char *path) { - struct file *f = open_file(path); - if (!f) { - tell_user_sz("Couldn't open file.\n"); - return; - } - char buf[] = { '\0', '\0' }; - while (read_from_file(f, 1, buf)) - tell_user_sz(buf); - tell_user_sz("\n"); - close_file(f); -}
\ No newline at end of file |