@@ -654,26 +654,26 @@ Experimental
654
654
655
655
### Description
656
656
657
- It gets the current working directory associated with the process calling this subroutine .
657
+ This subroutine retrieves the current working directory, the running process is executing from .
658
658
It is designed to work across multiple platforms. On Windows, paths with both forward ` / ` and backward ` \ ` slashes are accepted.
659
659
660
660
### Syntax
661
661
662
- ` call [[stdlib_system(module):get_cwd(subroutine)]] (cwd, err) `
662
+ ` call [[stdlib_system(module):get_cwd(subroutine)]] (cwd [ , err] ) `
663
663
664
664
### Class
665
665
666
666
Subroutine
667
667
668
668
### Arguments
669
669
670
- ` cwd ` : Shall be a character string containing the path of the current working directory (cwd). It is an ` intent(out) ` argument.
670
+ ` cwd ` : Shall be a character string for receiving the path of the current working directory (cwd). It is an ` intent(out) ` argument.
671
671
672
- ` err ` : Shall be of type ` state_type ` , for error handling. It is an ` intent(out) ` argument.
672
+ ` err ` (optional) : Shall be of type ` state_type ` , and is used for error handling. It is an ` intent(out) ` argument.
673
673
674
674
### Return values
675
675
676
- The ` err ` is set accordingly .
676
+ ` err ` is an optional state return flag. On error if not requested, an ` FS_ERROR ` will trigger an error stop .
677
677
678
678
### Example
679
679
@@ -691,12 +691,12 @@ Experimental
691
691
692
692
### Description
693
693
694
- It sets the current working directory associated with the process calling this subroutine .
694
+ This subrotine sets the current working directory the process is executing from .
695
695
It is designed to work across multiple platforms. On Windows, paths with both forward ` / ` and backward ` \ ` slashes are accepted.
696
696
697
697
### Syntax
698
698
699
- ` call [[stdlib_system(module):set_cwd(subroutine)]] (path, err) `
699
+ ` call [[stdlib_system(module):set_cwd(subroutine)]] (path [ , err] ) `
700
700
701
701
### Class
702
702
@@ -706,11 +706,11 @@ Subroutine
706
706
707
707
` path ` : Shall be a character string containing the path of the directory. It is an ` intent(in) ` argument.
708
708
709
- ` err ` : Shall be of type ` state_type ` , for error handling. It is an ` intent(out) ` argument.
709
+ ` err ` (optional) : Shall be of type ` state_type ` , and is used for error handling. It is an ` intent(out) ` argument.
710
710
711
711
### Return values
712
712
713
- The ` err ` is set accordingly .
713
+ ` err ` is an optional state return flag. On error if not requested, an ` FS_ERROR ` will trigger an error stop .
714
714
715
715
### Example
716
716
0 commit comments