This is a discussion on Re: Ambiguous man memcmp within the lucky.openbsd.misc forums, part of the OpenBSD category; --> On Sun, Jul 16, 2006 at 10:55:13PM +0200, Karel Kulhavy wrote: > "otherwise returns the difference between the first ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Sun, Jul 16, 2006 at 10:55:13PM +0200, 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]. > > CL< in the order you pass them to memcmp()? jmc |