smaller event selector window

This commit is contained in:
Cedric Roux
2016-05-02 16:55:17 +02:00
parent 98c46f70f7
commit f0d32a8611
4 changed files with 17 additions and 4 deletions
+12
View File
@@ -4,6 +4,7 @@
#include <pthread.h>
#include <time.h>
#include <unistd.h>
#include <ctype.h>
void new_thread(void *(*f)(void *), void *data)
{
@@ -97,6 +98,17 @@ void PUTS(OBUF *o, char *s)
while (*s) PUTC(o, *s++);
}
static int clean(char c)
{
if (!isprint(c)) c = ' ';
return c;
}
void PUTS_CLEAN(OBUF *o, char *s)
{
while (*s) PUTC(o, clean(*s++));
}
void PUTI(OBUF *o, int i)
{
char s[64];