Version Macro
Giorgos Keramidas
keramida at ceid.upatras.gr
Wed Sep 8 06:05:20 PDT 2004
On 2004-09-07 15:50, Mmaist <mmaist at 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;
}
More information about the freebsd-questions
mailing list