This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: runtime version query
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Robert Schweikert <Robert dot Schweikert at abaqus dot com>
- Cc: libc-alpha at sources dot redhat dot com, Robert Schweikert <rjschwei at abaqus dot com>
- Date: Mon, 15 Dec 2003 15:17:05 +0100
- Subject: Re: runtime version query
- References: <1071502771.8555.406.camel@cheetah.hks.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Dec 15, 2003 at 10:39:31AM -0500, Robert Schweikert wrote:
> Is it possible to get a hold of the glibc version at runtime?
>
> I looked through the manual but could not find any information on this.
Yes.
char buf[64];
confstr (_CS_GNU_LIBC_VERSION, buf, sizeof (buf));
Jakub