Call _seterrno instead of assigning to _errno to make the code shorter.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4690 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1ab221bd05
commit
63b629b801
1 changed files with 1 additions and 2 deletions
|
@ -25,8 +25,7 @@ char* __fastcall__ fgets (char* s, unsigned size, FILE* f)
|
|||
|
||||
if (size == 0) {
|
||||
/* Invalid size */
|
||||
_errno = EINVAL;
|
||||
return 0;
|
||||
return (char*) _seterrno (EINVAL);
|
||||
}
|
||||
|
||||
/* Read input */
|
||||
|
|
Loading…
Add table
Reference in a new issue