This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: A bug in strverscmp.c?
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: Re: A bug in strverscmp.c?
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Thu, 1 Feb 2001 10:00:40 -0800
- References: <20010201094846.A23750@valinux.com>
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.