VM: full munmap
[minix.git] / lib / libsys / kputs.c
blobe05c9bf45887532ec38740247ccb21ee2cce2784
1 /* system services puts()
3 * This is here because gcc converts printf() calls without actual formatting
4 * in the format string, to puts() calls. While that "feature" can be disabled
5 * with the -fno-builtin-printf gcc flag, we still don't want the resulting
6 * mayhem to occur in system servers even when that flag is forgotten.
7 */
9 #include <stdio.h>
11 /* puts() uses kputc() to print characters. */
12 void kputc(int c);
14 int puts(const char *s)
17 for (; *s; s++)
18 kputc(*s);
20 kputc('\n');
21 kputc('\0');
23 return 0;