Versions Compared

Key

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


...

Code Block
languagecpp
void  FS_WorkingDirGet (CPU_CHAR    *path_dir,

...


                        CPU_SIZE_T

...

   size,
                        FS_ERR      *p_err);

...

1109470
HTML Table
summary
classPlain_Table
Table Row (tr)
Table Cell (td)
Anchor
1109470


File

...

Called from

...

Code enabled by

...

...

fs.c

...

Application;

...


...

fs_getcwd()

...

FS_CFG_WORKING_DIR_EN

...

1091627Get the working directory for the current task. Anchor11044671104467

Arguments

...

10916301091630path_dir Anchor11403641140364

String buffer that will receive the working directory path.

...

sizeanchor11403711140371

Size of string buffer.

Anchor10916321091632p_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

...

classWebWorks_Indent_2

...

No volumes exist.

...

Returned Value

...

None. Anchor10998651099865

Notes/Warnings

...

  1. 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.