X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;h=d94746cdb2c217399e61e82c45d583a280d9d511;hb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;hp=f93a53b522fa18ba3c8a00e9fa2a19973146cf8d;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old 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; +} +*/