1 #include "config.h"
2 #include "copyright2.h"
3
4 #include <stdio.h>
5 #include <stdarg.h>
6 #include <unistd.h>
7 #include <string.h>
8
9 #include "Wlib.h"
10 #include "defs.h"
11 #include "struct.h"
12 #include "data.h"
13
14
myf(int x,int y,W_Color color,W_Font font,const char * fmt,...)15 void myf(int x, int y, W_Color color, W_Font font, const char *fmt, ...)
16 {
17 char buf[101];
18 int len;
19 va_list args;
20
21 va_start(args, fmt);
22 len = vsnprintf(buf, 100, fmt, args);
23 buf[len] = '\0';
24 W_WriteText(w, x, y, color, buf, len, font);
25 va_end(args);
26 }
27
28
myc(int x,int y)29 void myc(int x, int y)
30 {
31 W_ClearArea(w, x, y, TWINSIDE-x, W_Textheight);
32 }
33
34
35