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

Provenance
oshogboAuthored on
Parents
rS345430: pf tests: Fix accidental duplication of content
Branches
Unknown
Tags
Unknown