Kintsugi OS 0.2.0
x86 Monolithic OS
Loading...
Searching...
No Matches
stdio.h
Go to the documentation of this file.
1/*------------------------------------------------------------------------------
2 * Kintsugi OS KKLIBC source code
3 * File: kklibc/stdio.h
4 * Title: Набор средств ввода/вывода (заголовчный файл)
5 * Description: null
6 * ----------------------------------------------------------------------------*/
7
8#ifndef KKLIBC_STDIO_H
9#define KKLIBC_STDIO_H
10
11#include "../drivers/screen.h"
12
13typedef char* va_list;
14
15#define va_start(ap, last) (ap = (va_list) & last + sizeof(last))
16#define va_arg(ap, type) (*(type*)((ap += sizeof(type)) - sizeof(type)))
17#define va_end(ap) (ap = (va_list)0)
18
25void printf(char* fmt, ...);
26
34void printf_colored(char* fmt, int color, ...);
35
45void printf_at(char* fmt, int col, int row, int color, ...);
46
47#endif // KKLIBC_STDIO_H
void printf(char *fmt,...)
Стандартный форматированный вывод
Definition stdio.c:67
void printf_at(char *fmt, int col, int row, int color,...)
Функция форматированного вывода в определенном месте
Definition stdio.c:83
char * va_list
Definition stdio.h:13
void printf_colored(char *fmt, int color,...)
Цветной форматированный вывод
Definition stdio.c:75