OSDN Git Service

バグ修正,メッセージング機能向上
[vaneos/vaneosmain.git] / include / stdio.h
1 #ifndef _STDIO_H_VANE_
2 #define _STDIO_H_VANE_
3
4 extern unsigned short* screen;
5 extern char attr;
6 extern unsigned int X,Y;
7
8 #define BRACK   0x00
9 #define BLUE    0x01
10 #define GREEN   0x02
11 #define CIAN    0x03
12 #define RED     0x04
13 #define MASENTA 0x05
14 #define BRAWN   0x06
15 #define GLAY    0x07
16 #define D_GLAY  0x08
17 #define CH_BLUE 0x09
18 #define CH_GREE 0x0a
19 #define CH_CIAN 0x0b
20 #define PINK    0x0c
21 #define CH_MAS  0x0d
22 #define YELLOW  0x0e
23 #define WHITE   0x0f
24
25 #define CHAR_BYTE       1
26 #define SHORT_BYTE      2
27 #define INT_BYTE        4
28 #define LONG_BYTE       4
29 #define LONG_LONG_BYTE  8
30 #define DOUBLE_BYTE     8
31 #define FLOAT_BYTE      4
32
33 #define NULL    ((void *) 0)
34
35 #define NUM_NULL 0
36 /*
37 #include <stdarg.h>
38
39 int sprintf(char *s, const char *format, ...);
40 int vsprintf(char *s, const char *format, va_list arg);
41 */
42 char getchar(void);
43 char getch(void);
44
45 void ClearScreen(void);
46 void puts(const char* msg);
47 void putchar(const char);
48 void printOK(const char* msg);
49
50 #endif