1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <io.h> int portable_mode () { if ((_access( "portable-mode", 0 )) != -1) { return 1; } else { return 0; } }