From: solar Date: Mon, 13 Mar 2006 06:33:19 +0000 (+0000) Subject: Initial checkin. X-Git-Tag: v0.5~239 X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=cb1e312d4df84b4d73f4255af6b5be0c66407080 Initial checkin. --- diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c new file mode 100644 index 0000000..4aa45ff --- /dev/null +++ b/functions/stdio/gets.c @@ -0,0 +1,29 @@ +/* $Id$ */ + +/* gets( char * ) + + 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 + +char * gets( char * s ) +{ + return fgets( s, SIZE_MAX, stdin ); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} + +#endif