]> pd.if.org Git - pdclib/commitdiff
Initial checkin.
authorsolar <unknown>
Mon, 13 Mar 2006 06:33:19 +0000 (06:33 +0000)
committersolar <unknown>
Mon, 13 Mar 2006 06:33:19 +0000 (06:33 +0000)
functions/stdio/gets.c [new file with mode: 0644]

diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c
new file mode 100644 (file)
index 0000000..4aa45ff
--- /dev/null
@@ -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 <stdio.h>
+
+#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