minix/minix/lib/libsys/kputs.c
Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

25 lines
525 B
C

/* system services puts()
*
* This is here because gcc converts printf() calls without actual formatting
* in the format string, to puts() calls. While that "feature" can be disabled
* with the -fno-builtin-printf gcc flag, we still don't want the resulting
* mayhem to occur in system servers even when that flag is forgotten.
*/
#include <stdio.h>
/* puts() uses kputc() to print characters. */
void kputc(int c);
int puts(const char *s)
{
for (; *s; s++)
kputc(*s);
kputc('\n');
kputc('\0');
return 0;
}