X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fputc.c;fp=functions%2Fstdio%2Fputc.c;h=60a4dba9294c296dd92fafd5c73f9d8a40ae0704;hb=9a862b964b7c7226f4d2fc52de13e0db0a9c66d4;hp=0000000000000000000000000000000000000000;hpb=babe116007c414671ede1a315f16f7936fa3bb0b;p=pdclib diff --git a/functions/stdio/putc.c b/functions/stdio/putc.c new file mode 100644 index 0000000..60a4dba --- /dev/null +++ b/functions/stdio/putc.c @@ -0,0 +1,29 @@ +/* $Id$ */ + +/* putc( int, FILE * ) + + 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 + +int putc( int c, struct _PDCLIB_file_t * stream ) +{ + return fputc( c, stream ); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + /* Testing covered by ftell.c */ + return TEST_RESULTS; +} + +#endif