A lightweight C program to retrieve OS version and hostname for both Windows and Linux environments.
- Detects and displays the Operating System version.
- Retrieves and prints the hostname of the device.
- Supports both Windows and Linux platforms.
- Uses native system API calls for efficient execution.
Ensure you have gcc installed (via MinGW or similar). Compile using:
gcc quick_sysinfo2.c -o system_info.exeRun with:
system_info.exeCompile using:
gcc quick_sysinfo2.c -o system_infoRun with:
./system_info