Introduction - If you have any usage issues, please Google them yourself
This a function to obtain hardware information used to access the hardware using dmidecode command to obtain information getDevInfo.c has a function get_device_info, the prototype is as follows int get_device_info (const char* device, const char* item, char* mybuf, int buffsize ) please bear with the main function to use this function header getDevInfo.c