]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
strings: return an error code and the char value separately
authoroshogbo <oshogbo@FreeBSD.org>
Sat, 23 Mar 2019 02:17:07 +0000 (02:17 +0000)
committeroshogbo <oshogbo@FreeBSD.org>
Sat, 23 Mar 2019 02:17:07 +0000 (02:17 +0000)
commitf173d5bb02357881f4c6117baad435b4fbf29324
treec30629bd7f193ce17ab604d4fe304366881d39f3
parent0d79d351f864c85b1c64f0813a50f35778a8a3f9
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
contrib/elftoolchain/strings/strings.c