#include "io.h"
#include "thread.h"
#include "int.h"
#include "errnums.h"
Functions | |
| int | getc_try (void) |
| Check for character in the keyboard buffer availible. | |
| int | getc (void) |
| Reads char from keyboard buffer, else blocks calling thread and waits for keypress. | |
| int | gets (char *str, const size_t len) |
| Read at most len-1 characters from keyboard, reading is terminated by ' ' character. | |
Variables | |
| thread_t | input_queue |
| int getc | ( | void | ) |
Reads char from keyboard buffer, else blocks calling thread and waits for keypress.
| int getc_try | ( | void | ) |
Check for character in the keyboard buffer availible.
| int gets | ( | char * | str, | |
| const size_t | len | |||
| ) |
Read at most len-1 characters from keyboard, reading is terminated by '
' character.
| str | - null terminated returned string | |
| len | - maximum length of str buffer |
1.4.7