Get the BIOS version

I have a little question:
How can I get the version of the BIOS I have on my system (in c/c++)?
Thanx a lot in advance.

You need to port dmidecode utility to QNX, project page is here:

thanx a lot!
I hope to get along with it! ;)