www.nico.schottelius.org/software/cinit/browse_source/cinit-0.0.7/generic/mini_printf.c
Nico Schottelius 423ba10303 import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-16 12:53:45 +02:00

20 lines
298 B
C

/*
* cinit
* (c) 2005 Nico Schottelius (nico-linux at schottelius.org)
* print string
*/
#include <unistd.h>
void mini_printf(char *str,int fd)
{
char *p;
p = str;
while ( *p != '\0') {
write(fd,p,1);
p++;
}
write(fd,"\n",1); /* FIXME: only when console */
}