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.