Hi!

I want to make a portable code - a code that could be used on pure MS-DOS, under Windows and Linux OS.

There are some routines that are different for these operating systems.
My idea is, to write a procedure that figures out which operating system is running.

Then, the program could run the appropriate routine that is compatible to the specific OS.

Is this possible, and if it is, how to solve this problem?
Any tips?

Thank you!