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:
parent
b1f8ab7810
commit
3b4112ae0c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user