I need to do a function to clear the screen in C that runs on win, mac and linux. I thought about doing a function that:
If the OS were windows: system("cls");
If the OS was linux or mac: system("clear");
The problem is: How do I find out the computer's operating system and how would these if and else be?