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
Post a Comment