X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fstdio%2Fgets.c;fp=functions%2Fstdio%2Fgets.c;h=4aa45ff0117d2011ca102e79f16e08d5c3dc8900;hb=9ed737e0795be7ac11155d936d19d3b6edb7e5fa;hp=0000000000000000000000000000000000000000;hpb=ccae3afa15b4adf4b189d769ec0b44edce461897;p=fw%2Fpdclib 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