This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A bug in strverscmp.c?


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]