Command Prompt for Windows

fillpath, _wfillpath, _tfillpath

int fillpath(char *path);
int _wfillpath(wchar_t *path);
int _tfillpath(TCHAR *path);

Create a Path Table containing all the directories and sub-directories starting from the specified path.

Parameter Description
path Address of a NULL terminated character string containing a path. This path can be relative or absolute. The file name part of the path is expected and ignored.


On success, it returns the number of directories and sub-directories found, otherwise, it returns a value of zero, when no directories are found.


The directories . and .. are not included in the table.

A new Path Table is allocated with each call to this function. Use freepaths() to release the memory allocated for the table, when it is no longer needed.

The table is sorted in alphabetical order

See Also

fillpathall, freepaths, getpath