1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 06:29:36 +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:
uz 2010-06-03 20:21:23 +00:00
parent 1ab221bd05
commit 63b629b801

View File

@ -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 */