Command Prompt for Windows

getpath, _wgetpath, _tgetpath

char *getpath(int index);
wchar_t *_wgetpath(int index);
TCHAR *_tgetpath(int index);

Retrieve a path name from the Path Table.

Parameter Description
index Specifies which path to retrieve from the Path Table. Entries in the Path Table start from an index of 0.


On success it returns the address of a NULL terminated string containing the path name. On error it returns a NULL.


All the path names returned contains *.* for the file name part..

Use the fillpath() or fillpathall() to fill the Path Table before using getpath().

Path names are stored in a static buffer and is over-written each time this function is called.

See Also

fillpath, fillpathall, freepaths