strncmp issue
Richard Tobin
richard at inf.ed.ac.uk
Tue Apr 28 14:37:10 UTC 2009
> This shouldn't be an issue, as the second argument of strncmp is unsigned,
(you mean third)
> -1 is not a valid value.
In the presence of a prototype, -1 will be converted to the maximum
value of the unsigned type. So strncmp(x, y, -1) should be much
the same as strcmp(x, y).
-- Richard
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
More information about the freebsd-arm
mailing list