minix3/lib/libc/gen/stderr.c

12 lines
177 B
C
Raw Normal View History

2020-02-21 00:59:27 +05:30
#include <lib.h>
#include <sys/types.h>
#include <unistd.h>
void std_err(const char *s)
{
register const char *p = s;
while (*p != 0) p++;
write(2, s, (int) (p - s));
}