Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

strerror.c

Go to the documentation of this file.
00001 /* Some operating systems don't have strerror.
00002    This file provides a definition which David Mazieres <dm@lcs.mit.edu>
00003    assures me works. */
00004 
00005 #ifdef HAVE_CONFIG_H
00006 # include "config.h"
00007 #endif
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011 
00012 char *
00013 strerror(int errno)
00014 {
00015   extern int sys_nerr;
00016   extern char *sys_errlist[];
00017   if (errno < 0 || errno >= sys_nerr)
00018     return (char *)"bad error number";
00019   else
00020     return sys_errlist[errno];
00021 }
00022 
00023 #ifdef __cplusplus
00024 }
00025 #endif
 

Powered by Plone

This site conforms to the following standards: