linux c语言检测硬盘个数挂载硬盘,Linux下C语言来检测USB设备以及自动区分U盘和硬盘并自动挂载...
#include#defineDEVTYPE_DISK2#defineDEVTYPE_U3//外部设备的子结构typedefstructtagDevParam_T{unsignedchardevname[12];unsignedchardevtype;///2----硬盘,3----U盘unsignedcharpartition_count;unsignedintdev_totalspace;//