mirror of
https://github.com/cc65/cc65.git
synced 2024-11-10 10:04:50 +00:00
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
@ -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…
Reference in New Issue
Block a user