X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;fp=functions%2Fstdio%2Fperror.c;h=d94746cdb2c217399e61e82c45d583a280d9d511;hb=435127acb8e016352a581827aa0465a2b32824e6;hp=f93a53b522fa18ba3c8a00e9fa2a19973146cf8d;hpb=d954dee1f991f0bc017ac65c4203c36c838abb1f;p=fw%2Fpdclib 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; +} +*/