mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-02-03 01:53:24 +08:00
19 lines
563 B
C
19 lines
563 B
C
int api_openwin(char *buf, int xsiz, int ysiz, int col_inv, char *title);
|
|
void api_putstrwin(int win, int x, int y, int col, int len, char *str);
|
|
void api_boxfilwin(int win, int x0, int y0, int x1, int y1, int col);
|
|
void api_initmalloc(void);
|
|
char *api_malloc(int size);
|
|
void api_end(void);
|
|
|
|
void HariMain(void)
|
|
{
|
|
char *buf;
|
|
int win;
|
|
|
|
api_initmalloc();
|
|
buf = api_malloc(150 * 50);
|
|
win = api_openwin(buf, 150, 50, -1, "hello");
|
|
api_boxfilwin(win, 8, 36, 141, 43, 6); /*浅蓝色*/
|
|
api_putstrwin(win, 28, 28, 0 , 12, "hello, world");/*黑色*/
|
|
api_end();
|
|
} |