import cinit from unix.schottelius.org

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-09-16 12:53:45 +02:00
commit 423ba10303
13396 changed files with 269468 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/*
* cinit
* (c) 2005 Nico Schottelius (nico-linux at schottelius.org)
* print string
*/
#include <unistd.h>
void mini_printf(char *str,int fd)
{
char *p;
size_t length = 0;
p = str;
while ( *p != '\0') {
++length;
++p;
}
write(fd,str,length);
/* \n is put by outside function */
/* write(fd,"\n",1); */
}