home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
alde_c
/
misc
/
zed
/
stevie
/
regerror.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1987-09-13
|
359 b
|
20 lines
#include <stdio.h>
void
regerror(s)
char *s;
{
#ifdef ERRAVAIL
error("regexp: %s", s);
#else
fprintf(stderr, "regexp(3): %s\n", s);
exit(1);
/*
note: if the program using regexp(3) wants to handle the regexp
errors, comment out the above and use this
*/
return; /* let using program handle errors */
#endif
/* NOTREACHED */
}