Linux Version number and hardwares list


I am looking for a C/C++ code to get the Linux Version number and the hardwares list in the system like drive size, RAM size etc.

Also, Is is possible to get the OS version and hardwares list using same code on any linux flavour?? For e.g. Fedora, ubuntu, Debian etc?

Can anyone suggest some code for this.

Any help is greatly appreciated.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!