File:  [Apple XNU] / GNUtools / libg++ / libio / ioperror.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:45:52 2018 UTC (8 years, 2 months ago) by root
Branches: MAIN, Apple
CVS tags: HEAD, GNUtools33
GNU tools for NeXTSTEP 3.3

#include "libioP.h"
#include <errno.h>
#include <string.h>
#ifndef errno
extern int errno;
#endif

#ifndef _IO_strerror
extern char* _IO_strerror _PARAMS((int));
#endif

void
_IO_perror (s)
     const char *s;
{
  char *error = _IO_strerror (errno);

  if (s != NULL && *s != '\0')
    _IO_fprintf (_IO_stderr, "%s:", s);

  _IO_fprintf (_IO_stderr, "%s\n", error ? error : "");
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.