_NutQueryRootDir()

returns the root directory of the NuTCRACKER Platform 

Function


SYNOPSIS

#include <nutc.h>

char *_NutQueryRootDir(int fmt);


DESCRIPTION

This function returns the root directory of the NuTCRACKER Platform. Use this function when you need to locate the equivalent of the UNIX / in your ported application.

Note:

This function returns a pointer to a static buffer. Do not modify the string returned by this function.


PARAMETERS

fmt 

When NUTFMT_WIN32, indicates that the path should be returned in Windows format.

When NUTFMT_NUTC, indicates that the path should be returned in NuTCRACKER Platform format.

When NUTFMT_WIN32_FS, indicates that the path should be returned in Windows format, using forward slashes (also known as MKS format).


RETURN VALUES

_NutQueryRootDir() returns a pointer to the NuTCRACKER Platform root directory in the specified format.


CONFORMANCE

PTC MKS Toolkit UNIX APIs extension.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
_NutPathToNutc(), _NutPathToWin32(), _NutPathToWin32FS(), _NutQueryWinDir(), _NutQueryWinNetFileDir(), _NutQueryWinSysDir()


PTC MKS Toolkit 10.4 Documentation Build 39.