HomeFreeBSD

strings: return an error code and the char value separately

Description

strings: return an error code and the char value separately

If we returning 32 bits value it's hard to distinguish if the returned value
is a valid one or if its an error (in case of EOF). For that reason separate
exit code of the function from the returned character.

Reported by: cem, se

Details

Committed
oshogboMar 23 2019, 2:17 AM
Parents
rS345430: pf tests: Fix accidental duplication of content
Branches
Unknown
Tags
Unknown