1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Somewhat shorter code

git-svn-id: svn://svn.cc65.org/cc65/trunk@1858 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-12-29 20:30:09 +00:00
parent b1f8ab7810
commit 3b4112ae0c

View File

@ -13,14 +13,13 @@
char* gets (char* s)
{
int i, c;
int c;
int i = 0;
i = 0;
do {
/* Get next character */
c = fgetc (stdin);
if (c == EOF) {
if ((c = fgetc (stdin)) == EOF) {
/* Error or EOF */
s [i] = 0;
if (stdin->f_flags & _FERROR) {