OurOS 0.1
Operating System built by McGill Students
 
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1#ifndef IO_H
2#define IO_H
3
4/**
5 * @brief Function type for printing a character.
6*/
7typedef void (*putchar) (char);
8
9/**
10 * @brief Function type for getting a character.
11 *
12 * @return A character.
13*/
14typedef char (*getchar) (void);
15
16/**
17 * @brief Writes a string of characters to the console.
18 *
19 * @param putc The putchar function.
20 * @param str String to be written.
21 */
22void putchars(putchar, const char*);
23
24#endif // IO_H
void putchars(putchar, const char *)
Writes a string of characters to the console.
Definition kshell.c:110
char(* getchar)(void)
Function type for getting a character.
Definition io.h:14
void(* putchar)(char)
Function type for printing a character.
Definition io.h:7