summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-02-11 11:47:51 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-02-11 11:53:35 +0100
commitc94d15c08a4f2c65f7f3b783d5b2b390b9bdd441 (patch)
tree422f406c93653fa22cfc2fd3ecb35f0492868d9f /src
parent5230d11ee8abdb05e3dc2bf7671258738143121c (diff)
downloadpintos-c94d15c08a4f2c65f7f3b783d5b2b390b9bdd441.tar.gz
print read file
Diffstat (limited to 'src')
-rw-r--r--src/examples/read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/examples/read.c b/src/examples/read.c
index 4b6e20b..4b50bd8 100644
--- a/src/examples/read.c
+++ b/src/examples/read.c
@@ -14,6 +14,8 @@ main (int argc, char *argv[])
int n = read (fd, read_buf, 16);
printf("read %d bytes:\n", n);
+ printf("###############\n");
+ printf("%s\n", read_buf);
halt();
return 0;