OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Ambiguous man memcmp

From: Alexander Hall (alexanderbeard.se)
Date: Mon Jul 17 2006 - 03:17:49 CDT


Karel Kulhavy wrote:
> "otherwise returns the difference between the first two differing bytes"
>
> Let's say already bytes b1[0] and b2[0] differ.
>
> The manpage doesn't say in which order the difference is calculated.
> Whether b1[0]-b2[0] or b2[0]-b1[0].

I could live with more specific documentation. Test it (I guess you have
already), and post a diff to the man file to bugs or by sendbug. Not
much work, and it just might make it into the tree.

/Alexander