TinkeCell API  1.0.0
C/Python/Octave/Ruby API
Functions
System information

get information about the OS and program directory More...

Functions

TCAPIEXPORT int tc_isWindows ()
 is this running in MS windows?
TCAPIEXPORT int tc_isMac ()
 is this running in a Mac?
TCAPIEXPORT int tc_isLinux ()
 is this running in a Unix system (excluding Mac)?
TCAPIEXPORT const char * tc_appDir ()
 TinkerCell application folder.
TCAPIEXPORT const char * tc_homeDir ()
 TinkerCell home folder.

Detailed Description

get information about the OS and program directory


Function Documentation

TCAPIEXPORT const char* tc_appDir ( )

TinkerCell application folder.

Returns:
string application folder path
TCAPIEXPORT const char* tc_homeDir ( )

TinkerCell home folder.

Returns:
string home folder path
TCAPIEXPORT int tc_isLinux ( )

is this running in a Unix system (excluding Mac)?

Returns:
0 (not Linux) or 1 (is Linux)
TCAPIEXPORT int tc_isMac ( )

is this running in a Mac?

Returns:
0 (not Mac OS ) or 1 (is Mac OS)
TCAPIEXPORT int tc_isWindows ( )

is this running in MS windows?

Returns:
0 (not windows OS ) or 1 (is windows OS)
 All Data Structures