A bug in strverscmp.c?

H . J . Lu hjl@valinux.com
Thu Feb 1 10:01:00 GMT 2001


On Thu, Feb 01, 2001 at 09:48:46AM -0800, H . J . Lu wrote:
> This testcase prints "-45". I was expecting a positive number. How about this
> patch?
> 
> -- 
> H.J. Lu (hjl@valinux.com)
> --
> #include <string.h>
> #include <stdio.h>
> 
> main ()
> {
>   printf ("%d\n", strverscmp ("2.8", "2.8-0.4"));
> }

Never mind. I was wrong :-).


H.J.


More information about the Libc-alpha mailing list