Code Block | ||
---|---|---|
| ||
void FS_WorkingDirGet (CPU_CHAR *path_dir, |
...
CPU_SIZE_T size, |
...
FS_ERR *p_err); |
File | Called from | Code enabled by |
---|---|---|
| Application; |
|
Get the working directory for the current task.
...
Pointer to variable that will receive the return error code from this function:
FS_ERR_NONE
Working directory obtained.
FS_ERR_NULL_PTR
Argument path_dir passed a NULL pointer.
FS_ERR_NULL_ARG
Argument size passed a NULL value.
FS_ERR_NAME_BUF_TOO_SHORT
Argument size less than length of path
FS_ERR_VOL_NONE_EXIST
No volumes exist.
Returned Value
None.
Notes/Warnings
- If no working directory is assigned for the task, the default working directory—the root directory on the default volume—will be returned in the user buffer and set as the task’s working directory.