MakeDir
int MakeDir (char directoryName[]);
Purpose
Creates a new directory based on the specified directory name.
 |
Note You can create only one directory at a time. |
Example
/* Make a new directory named \DATA\WAVEFORM on drive C */
/* assuming that C:\DATA does not exist */
MakeDir ("C:\\DATA");
MakeDir ("C:\\DATA\\WAVEFORM");
Parameters
| Input |
| Name |
Type |
Description |
| directoryName |
string |
The pathname of the new directory. |
Return Value
| Name |
Type |
Description |
| result |
integer |
The result of the call.
| Code |
Description |
| 0 |
Success. |
| -1 |
One of the path components not found. |
| -3 |
General I/O error occurred. |
| -4 |
Insufficient memory to complete the operation. |
| -5 |
Invalid path; for example, c:filename. |
| -6 |
Access denied. |
| -8 |
Disk is full. |
| -9 |
Directory or file already exists with same pathname. |
|