Linux popen() alternative
#19
Could this work?
AString GetOperationType()
{
   AString res = "unknown"
   #if defined (__WIN32__)
      res = "windows";
   #elif defined(__linux__)
      res = "linux";
   #elif defined(__APPLE__)
      res = "apple";
   #endif

   #ifdef __arm__
      res += " arm";
   #endif
   return res;
}

Just to get some basic information about the operation system.
Reply
Thanks given by:


Messages In This Thread
Linux popen() alternative - by xoft - 05-04-2015, 05:56 AM
RE: Linux popen() alternative - by NiLSPACE - 05-04-2015, 06:17 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 06:19 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 06:23 AM
RE: Linux popen() alternative - by NiLSPACE - 05-04-2015, 06:26 AM
RE: Linux popen() alternative - by worktycho - 05-04-2015, 06:59 AM
RE: Linux popen() alternative - by worktycho - 05-04-2015, 07:17 AM
RE: Linux popen() alternative - by xoft - 05-04-2015, 07:46 AM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 07:30 AM
RE: Linux popen() alternative - by xoft - 05-05-2015, 07:40 AM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 08:11 AM
RE: Linux popen() alternative - by xoft - 05-05-2015, 03:58 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 09:16 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 10:17 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 10:28 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 10:56 PM
RE: Linux popen() alternative - by xoft - 05-05-2015, 11:14 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 11:22 PM
RE: Linux popen() alternative - by NiLSPACE - 05-05-2015, 11:32 PM
RE: Linux popen() alternative - by worktycho - 05-05-2015, 11:34 PM
RE: Linux popen() alternative - by tigerw - 05-06-2015, 03:47 AM
RE: Linux popen() alternative - by xoft - 05-08-2015, 12:33 AM
RE: Linux popen() alternative - by NiLSPACE - 05-08-2015, 12:38 AM
RE: Linux popen() alternative - by xoft - 05-08-2015, 12:40 AM
RE: Linux popen() alternative - by NiLSPACE - 05-08-2015, 12:42 AM



Users browsing this thread: 7 Guest(s)