BizHawk/waterbox/libc/functions/stdio/putc.c

35 lines
534 B
C

/* 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 <stdio.h>
#ifndef REGTEST
#include "_PDCLIB_io.h"
int _PDCLIB_putc_unlocked( int c, FILE * stream )
{
return _PDCLIB_fputc_unlocked( c, stream );
}
int putc( int c, FILE * stream )
{
return fputc( c, stream );
}
#endif
#ifdef TEST
#include "_PDCLIB_test.h"
int main( void )
{
/* Testing covered by ftell.c */
return TEST_RESULTS;
}
#endif