]> pd.if.org Git - pdclib/blob - functions/stdio/gets.c
Temporary integration of _PDCLIB_print(), broken.
[pdclib] / functions / stdio / gets.c
1 /* $Id$ */
2
3 /* gets( char * )
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #include <stdio.h>
10 #include <stdint.h>
11
12 #ifndef REGTEST
13
14 char * gets( char * s )
15 {
16     return fgets( s, SIZE_MAX, stdin );
17 }
18
19 #endif
20
21 #ifdef TEST
22 #include <_PDCLIB_test.h>
23
24 int main( void )
25 {
26     TESTCASE( NO_TESTDRIVER );
27     return TEST_RESULTS;
28 }
29
30 #endif