X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;h=d85cd647440cbdfcd8e75acb2052a1dc80121877;hp=f93a53b522fa18ba3c8a00e9fa2a19973146cf8d;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec diff --git a/functions/stdio/perror.c b/functions/stdio/perror.c index f93a53b..d85cd64 100644 --- a/functions/stdio/perror.c +++ b/functions/stdio/perror.c @@ -1,8 +1,26 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * --------------------------------------------------------------------------*/ void perror( const char * s ) { /* TODO */ }; + +/* PDPC code - unreviewed +{ + if ((s != NULL) && (*s != '\0')) + { + printf("%s: "); + } + if (errno == 0) + { + printf("No error has occurred\n"); + } + else + { + printf("An error has occurred\n"); + } + return; +} +*/