dirName()
The function returns the directory path for the specified directory.
Synopsis
string dirName(string path);
Parameters
Parameter | Meaning |
---|---|
path | The directory path |
Return Value
The directory path.
Errors
-
Description
The function returns the directory path for the specified directory. The function
below , for example, returns the path "C://test1//".
If filename without additional path is given, the function returns "./"
"//DESTINATION//TEST MANN# TEST.WAV"; returns: "]["//DESTINATION//"]
"DESTINATION//TEST MANN# TEST.WAV"; returns: "]["DESTINATION//"]
"TEST MANN# TEST.WAV"; returns: "]["./"]
Example
main()
{
bool result;
result= = dirName("C://test1//subTest");
DebugN(result);
}
Assignment
Availability
CTRL