X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fperror.c;h=c59ca0b290a582934f50c3b4a467002915a4a527;hb=8a292a8d4b146cc31c81ed21a1925aa10fb6c206;hp=d94746cdb2c217399e61e82c45d583a280d9d511;hpb=0a5395faab237ba9008352b0f4bee9659bbd3d5f;p=pdclib diff --git a/functions/stdio/perror.c b/functions/stdio/perror.c index d94746c..c59ca0b 100644 --- a/functions/stdio/perror.c +++ b/functions/stdio/perror.c @@ -1,26 +1,30 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* $Id$ */ -void perror( const char * s ) { /* TODO */ }; +/* perror( const char * ) -/* PDPC code - unreviewed + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST + +void perror( const char * s ) { - if ((s != NULL) && (*s != '\0')) - { - printf("%s: "); - } - if (errno == 0) - { - printf("No error has occurred\n"); - } - else - { - printf("An error has occurred\n"); - } + /* TODO: Implement. */ return; } -*/ + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} + +#endif