This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I prefer to think of the noun as a tuple of the return value and the
error number, where errno is really just a hack around the fact that C
doesn't allow you to easily return tuples.
So, the return statement is really... return (-1, ENOSYS); ... and upon this sentence's translation to C it becomes... return errno = ENOSYS, -1;
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |