X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fstdio%2Fperror.c;h=d94746cdb2c217399e61e82c45d583a280d9d511;hb=0a5395faab237ba9008352b0f4bee9659bbd3d5f;hp=f93a53b522fa18ba3c8a00e9fa2a19973146cf8d;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib diff --git a/functions/stdio/perror.c b/functions/stdio/perror.c index f93a53b..d94746c 100644 --- a/functions/stdio/perror.c +++ b/functions/stdio/perror.c @@ -6,3 +6,21 @@ // ---------------------------------------------------------------------------- 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; +} +*/