@@ -174,7 +174,7 @@ The result is a real value representing the elapsed time in seconds, measured fr
174
174
175
175
### Syntax
176
176
177
- ` delta_t = ` [[ stdlib_system(module): elapsed (subroutine )]] ` (process) `
177
+ ` delta_t = ` [[ stdlib_system(module): elapsed (interface )]] ` (process) `
178
178
179
179
### Arguments
180
180
@@ -212,7 +212,7 @@ in case of process hang or delay.
212
212
213
213
### Syntax
214
214
215
- ` call ` [[ stdlib_system(module): wait (subroutine )]] ` (process [, max_wait_time]) `
215
+ ` call ` [[ stdlib_system(module): wait (interface )]] ` (process [, max_wait_time]) `
216
216
217
217
### Arguments
218
218
@@ -243,7 +243,7 @@ This is especially useful for monitoring asynchronous processes and retrieving t
243
243
244
244
### Syntax
245
245
246
- ` call ` [[ stdlib_system(module): update (subroutine )]] ` (process) `
246
+ ` call ` [[ stdlib_system(module): update (interface )]] ` (process) `
247
247
248
248
### Arguments
249
249
@@ -269,7 +269,7 @@ This interface is useful when a process needs to be forcefully stopped, for exam
269
269
270
270
### Syntax
271
271
272
- ` call ` [[ stdlib_system(module): kill (subroutine )]] ` (process, success) `
272
+ ` call ` [[ stdlib_system(module): kill (interface )]] ` (process, success) `
273
273
274
274
### Arguments
275
275
@@ -298,7 +298,7 @@ It ensures that the requested sleep duration is honored on both Windows and Unix
298
298
299
299
### Syntax
300
300
301
- ` call ` [[ stdlib_system(module): sleep (subroutine )]] ` (millisec) `
301
+ ` call ` [[ stdlib_system(module): sleep (interface )]] ` (millisec) `
302
302
303
303
### Arguments
304
304
@@ -324,7 +324,7 @@ This function is highly efficient and works during the compilation phase, avoidi
324
324
325
325
### Syntax
326
326
327
- ` result = ` [[ stdlib_system(module): is_windows (function )]] ` () `
327
+ ` result = ` [[ stdlib_system(module): is_windows (interface )]] ` () `
328
328
329
329
### Return Value
330
330
@@ -359,7 +359,7 @@ If the OS cannot be identified, the function returns `OS_UNKNOWN`.
359
359
360
360
### Syntax
361
361
362
- ` os = [[stdlib_system(module):get_runtime_os(function)]]() `
362
+ ` os = ` [[ stdlib_system(module): get_runtime_os (function)]] ` () `
363
363
364
364
### Class
365
365
@@ -396,7 +396,7 @@ This caching mechanism ensures negligible overhead for repeated calls, unlike `g
396
396
397
397
### Syntax
398
398
399
- ` os = [[stdlib_system(module):OS_TYPE(function)]]() `
399
+ ` os = ` [[ stdlib_system(module): OS_TYPE (function)]] ` () `
400
400
401
401
### Class
402
402
@@ -431,7 +431,7 @@ It is designed to work across multiple platforms. On Windows, paths with both fo
431
431
432
432
### Syntax
433
433
434
- ` result = [[stdlib_system(module):is_directory(function)]] (path) `
434
+ ` result = ` [[ stdlib_system(module): is_directory (function)]] ` (path) `
435
435
436
436
### Class
437
437
@@ -471,7 +471,7 @@ It reads as an empty file. The null device's path varies by operating system:
471
471
472
472
### Syntax
473
473
474
- ` path = [[stdlib_system(module):null_device(function)]]() `
474
+ ` path = ` [[ stdlib_system(module): null_device (function)]] ` () `
475
475
476
476
### Class
477
477
@@ -506,7 +506,7 @@ The function provides an optional error-handling mechanism via the `state_type`
506
506
507
507
### Syntax
508
508
509
- ` call [[stdlib_system(module):delete_file(subroutine)]] (path [, err]) `
509
+ ` call ` [[ stdlib_system(module): delete_file (subroutine)]] ` (path [, err]) `
510
510
511
511
### Class
512
512
Subroutine
@@ -546,8 +546,9 @@ i.e `\` for windows and `/` for others
546
546
547
547
### Syntax
548
548
549
- ` res = [[stdlib_system(module):joinpath(interface)]] (p1, p2) `
550
- ` res = [[stdlib_system(module):joinpath(interface)]] (p) `
549
+ ` res = ` [[ stdlib_system(module): joinpath (interface)]] ` (p1, p2) `
550
+
551
+ ` res = ` [[ stdlib_system(module): joinpath (interface)]] ` (p) `
551
552
552
553
### Class
553
554
Pure function
@@ -562,24 +563,17 @@ Pure function
562
563
563
564
The resultant path.
564
565
565
- ### Example
566
-
567
- ``` fortran
568
- {!example/system/example_path_1.f90!}
569
- ```
570
-
571
566
## ` operator(/) `
572
567
573
- Join two paths according to the platform specific path-separator,
574
- Behavior exactly similar to ` joinpath `
568
+ Alternative syntax to` joinpath ` using an overloaded operator. Join two paths according to the platform specific path-separator.
575
569
576
570
### Status
577
571
578
572
Experimental
579
573
580
574
### Syntax
581
575
582
- ` p = lval + rval `
576
+ ` p = lval / rval `
583
577
584
578
### Class
585
579
@@ -588,6 +582,7 @@ Pure function.
588
582
### Arguments
589
583
590
584
` lval ` : A character string, ` intent(in) ` .
585
+
591
586
` rval ` : A character string, ` intent(in) ` .
592
587
593
588
### Result value
@@ -597,7 +592,7 @@ The result is an `allocatable` character string
597
592
#### Example
598
593
599
594
``` fortran
600
- {!example/system/example_path_1 .f90!}
595
+ {!example/system/example_path_join .f90!}
601
596
```
602
597
603
598
## ` splitpath ` - splits a path immediately following the last separator
@@ -613,7 +608,7 @@ splitting it into most of the times a directory and a file name.
613
608
614
609
### Syntax
615
610
616
- ` call [[stdlib_system(module):splitpath(interface)]] (p, head, tail) `
611
+ ` call ` [[ stdlib_system(module): splitpath (interface)]] ` (p, head, tail) `
617
612
618
613
### Class
619
614
Subroutine
@@ -637,7 +632,7 @@ The splitted path. `head` and `tail`.
637
632
### Example
638
633
639
634
``` fortran
640
- {!example/system/example_path_1 .f90!}
635
+ {!example/system/example_path_splitpath .f90!}
641
636
```
642
637
643
638
## ` basename ` - The last part of a path
@@ -652,7 +647,7 @@ This function returns the last part of a path after removing trailing path separ
652
647
653
648
### Syntax
654
649
655
- ` res = [[stdlib_system(module):basename(interface)]] (p) `
650
+ ` res = ` [[ stdlib_system(module): basename (interface)]] ` (p) `
656
651
657
652
### Class
658
653
Function
@@ -672,7 +667,7 @@ A character string.
672
667
### Example
673
668
674
669
``` fortran
675
- {!example/system/example_path_1 .f90!}
670
+ {!example/system/example_path_basename .f90!}
676
671
```
677
672
678
673
## ` dirname ` - Everything except the last part of the path
@@ -687,7 +682,7 @@ This function returns everything except the last part of a path.
687
682
688
683
### Syntax
689
684
690
- ` res = [[stdlib_system(module):dirname(interface)]] (p) `
685
+ ` res = ` [[ stdlib_system(module): dirname (interface)]] ` (p) `
691
686
692
687
### Class
693
688
Function
@@ -707,5 +702,5 @@ A character string.
707
702
### Example
708
703
709
704
``` fortran
710
- {!example/system/example_path_1 .f90!}
705
+ {!example/system/example_path_dirname .f90!}
711
706
```
0 commit comments