
/* perror.c - ryb */

#include <stdio.h>
#include <string.h>
#include <errno.h>

void
perror (const char *s)
{
  if (s != NULL && *s != '\0')
    {
      fputs (s, stderr);
      fputs (": ", stderr);
    }
  fputs (strerror (errno), stderr);
  fputc ('\n', stderr);
}
