axle OS
x86_32 UNIX-like hobby OS
src
std
printf.h
1
#ifndef PRINTF_H
2
#define PRINTF_H
3
4
#include <kernel/drivers/terminal/terminal.h>
5
#include <stdarg.h>
6
7
void
output(
int
dest,
char
* str);
8
9
//standard printf
10
void
printf(
char
* format, ...);
11
int
putchar(
int
ch);
12
//same as above, but outputs to syslog
13
//(applies to all _k functions listed here)
14
void
printk(
char
* format, ...);
15
16
//debug-priority printf
17
void
printf_dbg(
char
* format, ...);
18
void
printk_dbg(
char
* format, ...);
19
20
//info-priority printf
21
void
printf_info(
char
* format, ...);
22
void
printk_info(
char
* format, ...);
23
24
//error-priority printf
25
void
printf_err(
char
* format, ...);
26
void
printk_err(
char
* format, ...);
27
28
void
sprintf(
char
* str,
char
* format, ...);
29
30
#define stdin 0
31
#define stdout 1
32
#define stderr 2
33
//fprintf stub
34
//axle's current filesystem doesn't support writeable files,
35
//so fprintf only works with stdout and stderr.
36
//any other stream causes a critical failure
37
void
fprintf(
int
stream,
char
* format, ...);
38
39
void
reset_cursor_pos();
40
41
#endif
Generated by
1.8.14