Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2004 16:01:40 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Mmaist <mmaist@email.it>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Version Macro
Message-ID:  <20040908130140.GA4584@orion.daedalusnetworks.priv>
In-Reply-To: <8be344b928f01994540215d94ea07eaf@213.45.199.195>
References:  <8be344b928f01994540215d94ea07eaf@213.45.199.195>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-09-07 15:50, Mmaist <mmaist@email.it> wrote:
> Hi,
> I\'ve looked for a macro showing FreeBSD version in sys/* but I\'ve not met
> something interesting. Somebody knows where I could find something of this
> genre?

This should print an important version number.

        #include <osreldate.h>
        #include <stdio.h>

        int
        main(void)
        {
                printf("%lu\n", (unsigned long) __FreeBSD_version);
                return 0;
        }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040908130140.GA4584>