X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgets.c;h=cd2942e13aa79a0434e24eea12a259914912f884;hb=refs%2Ftags%2FOLD;hp=beba5743e35a07c575c15dc7284f37033186c85d;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c index beba574..cd2942e 100644 --- a/functions/stdio/gets.c +++ b/functions/stdio/gets.c @@ -1,8 +1,21 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * --------------------------------------------------------------------------*/ char * gets( char * s ) { /* TODO */ }; + +/* PDPC code - unreviewed +{ + char *ret; + + stdin->quickText = 0; + stdin->noNl = 1; + ret = fgets(s, INT_MAX, stdin); + stdin->noNl = 0; + stdin->quickText = 1; + return (ret); +} +*/