import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
3729fc68eb
commit
423ba10303
13396 changed files with 269468 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* 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 */
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue