dc166-patch/runtime/c166l/perror.c
2026-08-26 17:05:24 +03:00

11 lines
212 B
C

#include "dc166_stdio.h"
void perror(const char *prefix)
{
if (prefix != 0 && *prefix != 0) {
fputs(prefix, stderr);
fputs(": ", stderr);
}
fputs(strerror(errno), stderr);
fputc('\n', stderr);
}