DADiSP Worksheet Functions > Function Categories > Operating System Interface > PATHCHAR

 

PATHCHAR

Purpose:

Returns the separator character used in the file path names by the operating system. On Windows machines, this character is '\'; in UNIX, it is '/'; in VMS, it is '.'.

Syntax:

PATHCHAR

Returns:

A string.

Example:

#define DSPMACREAD(S)

macread(strcat("DSP", pathchar, "macros", S))

 

defines the macro DSPMACREAD to read in macro file, S, from the "macros" subdirectory of DSP.

Remarks:

PATHCHAR is helpful for setting up folders for menus and SPL functions.

See Also:

GETHOME

GETLABPATH

GETMISCPATH