Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

void  FS_WorkingDirGet (CPU_CHAR    *path_dir,

...

                        CPU_SIZE_T   size,

...

                        FS_ERR      *p_err);

...

...

File

...

Called from

...

Code enabled by

...

fs.c

...

Application;

...

fs_getcwd()

...

FS_CFG_WORKING_DIR_EN

Anchor10916271091627Get the working directory for the current task. Anchor11044671104467

Arguments

...

path_dir Anchor11403641140364

String buffer that will receive the working directory path.

...

size Anchor11403711140371

Size of string buffer.

...

1091632p_err Anchor11403781140378

Pointer to variable that will receive the return error code from this function:

...

classWebWorks_Indent_1

...

...

FS_ERR_NONE

...

classWebWorks_Indent_2

...

Working directory obtained.

...

classWebWorks_Indent_1

...

FS_ERR_NULL_PTR

...

classWebWorks_Indent_2

...

...

Argument path_dir passed a NULL pointer.

...

...

FS_ERR_NULL_ARG

...

classWebWorks_Indent_2

...

Argument size passed a NULL value.

...

classWebWorks_Indent_1

...

FS_ERR_NAME_BUF_TOO_SHORT

...

classWebWorks_Indent_2

...

...

Argument size less than length of path

...

classWebWorks_Indent_1

...

FS_ERR_VOL_NONE_EXIST

...

...

No volumes exist.

...

Returned Value

...

10916401091640None.anchor10998651099865

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.