Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(1) {
- puts("1. CPU Info");
- puts("2. Memory Info");
- puts("3. PCI Devices");
- printf("Option: ");
- scanf("%d", &optiune);
- if(optiune == 1) {
- strcpy(buff, "cpuinfo");
- } else if(optiune == 2) {
- strcpy(buff, "meminfo");
- } else if(optiune == 3) {
- strcpy(buff, "lspci");
- }
- // trimitere cerere si primire raspuns
- printf("Doriti o alta optiune? (1/0)");
- scanf("%d", &optiune);
- if(optiune == 0) {
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement