I use execv to run lshw command to get the CPU, disk, and memory in C code. But I would like to search another solution to get these information from command to get the CPU,
I use execv to run lshw command to get the CPU, disk, and memory in C code. But I would like to search another solution to get these information from command to get the CPU,