C/C++ - HWInfo - libhd - How to get the name list of all available devices? -


on linux, 1 can use command "hwinfo" (after installing it) in terminal print lot of device information. while nice, i'd utilize libhd (included in hwinfo) device information, device names exact. how can 1 name list of available devices , print name list, in c/c++?

from comment above... if wanna know number of elements struct, let's struct hd_data_t, may use

int nsize = sizeof(hd_data_t)/sizeof(hd_data_t[0]); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -