diff options
author | Alex Auvolat <alex@adnab.me> | 2017-04-19 11:37:40 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-04-19 11:37:40 +0200 |
commit | 8e88e765ee17296a85c5ae372471ed248ce321db (patch) | |
tree | 94c375f5ec15d215dac16c6f9e386f24283c07df /src/sysbin/shell | |
parent | 96da27494f89d75f8aec0c8894440c3f7482f54b (diff) | |
download | kogata-8e88e765ee17296a85c5ae372471ed248ce321db.tar.gz kogata-8e88e765ee17296a85c5ae372471ed248ce321db.zip |
Mini reorganization
Diffstat (limited to 'src/sysbin/shell')
-rw-r--r-- | src/sysbin/shell/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysbin/shell/main.c b/src/sysbin/shell/main.c index e27b4e9..3f45332 100644 --- a/src/sysbin/shell/main.c +++ b/src/sysbin/shell/main.c @@ -34,9 +34,10 @@ void cat(char* file) { while (true) { size_t r = sc_read(f, p, 128, buf); p += r; - fwrite(buf, r, 1, stdout); + fwrite(buf, 1, r, stdout); if (r < 128) break; } + printf("\n -> %d bytes\n", p); sc_close(f); } else { printf("Could not open file '%s'\n", file); |