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
*/
7
typedef
void (*
putchar
) (char);
8
9
/**
10
* @brief Function type for getting a character.
11
*
12
* @return A character.
13
*/
14
typedef
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
*/
22
void
putchars
(
putchar
,
const
char
*);
23
24
#endif
// IO_H
putchars
void putchars(putchar, const char *)
Writes a string of characters to the console.
Definition
kshell.c:110
getchar
char(* getchar)(void)
Function type for getting a character.
Definition
io.h:14
putchar
void(* putchar)(char)
Function type for printing a character.
Definition
io.h:7
include
kernel
io.h
Generated by
1.9.8