X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fstdio%2Fputchar.c;fp=functions%2Fstdio%2Fputchar.c;h=4e2d6ae7c0717b34ab5a301cb7c8e40a8c288977;hb=32cd1277a5cfbb35eca856fb7d64fb78cb54da60;hp=0000000000000000000000000000000000000000;hpb=21d7b4c571a934c050edba194a2ed90705b46d86;p=fw%2Fpdclib diff --git a/functions/stdio/putchar.c b/functions/stdio/putchar.c new file mode 100644 index 0000000..4e2d6ae --- /dev/null +++ b/functions/stdio/putchar.c @@ -0,0 +1,29 @@ +/* $Id$ */ + +/* putchar( int ) + + 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 putchar( int c ) +{ + return fputc( c, stdout ); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + /* Testing covered by ftell.c */ + return TEST_RESULTS; +} + +#endif