ref: b73411ce22e539bca001418d7b951279910e01a5
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);
}