ref: 5f9ff7925cc82a4e8d30f5ccfc6505680b5f169b
dir: /sys/src/ape/lib/ap/stdio/perror.c/
/*
* pANS stdio -- perror
*/
#include "iolib.h"
#include <errno.h>
void perror(const char *s){
if(s!=NULL && *s != '\0') fputs(s, stderr), fputs(": ", stderr);
fputs(strerror(errno), stderr);
putc('\n', stderr);
fflush(stderr);
}