diff options
| author | Felipe Boeira <felipe.boeira@liu.se> | 2021-01-21 22:47:02 +0100 |
|---|---|---|
| committer | Felipe Boeira <felipe.boeira@liu.se> | 2021-01-21 22:47:02 +0100 |
| commit | e23f06729ed1fe6693c3411f8df3ba7eeadf3ed3 (patch) | |
| tree | 309bdaa66f93480dad31b9a912e25544f5faabc4 | |
| parent | 2aee8e8d4bb740dccf3f3c33f7ef161f9e1a835d (diff) | |
| download | pintos-e23f06729ed1fe6693c3411f8df3ba7eeadf3ed3.tar.gz | |
Update lab1test2.c to print keys read from consoleupstream
| -rw-r--r-- | src/examples/lab1test2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/examples/lab1test2.c b/src/examples/lab1test2.c index 4438025..e86e3b6 100644 --- a/src/examples/lab1test2.c +++ b/src/examples/lab1test2.c @@ -191,6 +191,7 @@ int main(void) printf("Type 10 characters: "); bytes_read = read(STDIN_FILENO, sbuf, READ_CONSOLE_COUNT); printf("\n"); + printf("You have typed: ‰s\n", sbuf); if (bytes_read != READ_CONSOLE_COUNT) { ERROR("Failed to read %d characters from console, read %d.\n", READ_CONSOLE_COUNT, bytes_read); |
