19 lines
481 B
C
19 lines
481 B
C
|
|
/* io.h
|
||
|
|
* In/Out
|
||
|
|
*
|
||
|
|
* Common library for handling user i/o. Aims to be mechanic agnostic, and instead
|
||
|
|
* focus on implementing generic functions to format and manipulate data.
|
||
|
|
*/
|
||
|
|
#ifndef IO_H
|
||
|
|
#define IO_H
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
int putc(int (*)(char), char);
|
||
|
|
int print(int (*)(char), const char*);
|
||
|
|
int println(int (*)(char), const char*);
|
||
|
|
int printhex(int (*)(char), uint32_t);
|
||
|
|
int prindec(int (*)(char), uint32_t out);
|
||
|
|
int printf(int (*)(char), const char* fmt, ...);
|
||
|
|
|
||
|
|
#endif
|