fixed some internal links

This commit is contained in:
Leonard Iklé committed 2018-09-15 17:46:05 +02:00
1 parent 1ded17f6ea
commit 61cb036e6b
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ Advances to the next segment.
bool cwk_path_get_next_segment(struct cwk_segment *segment);
```
This function advances the current segment to the next segment. If there are no more segments left, the submitted segment structure will stay unchanged and false is returned. The segment should be either initialized using **[[cwk_path_get_first_segment]]** or **[[cwk_path_get_last_segment]]**.
This function advances the current segment to the next segment. If there are no more segments left, the submitted segment structure will stay unchanged and false is returned. The segment should be either initialized using **[cwk_path_get_first_segment]({{ site.baseurl }}{% link reference/cwk_path_get_first_segment.md %})** or **[cwk_path_get_last_segment]({{ site.baseurl }}{% link reference/cwk_path_get_last_segment.md %})**.
## Parameters
* **segment**: The current segment which will be advanced to the next one.
@@ -11,7 +11,7 @@ Moves to the previous segment.
bool cwk_path_get_previous_segment(struct cwk_segment *segment);
```
This function moves the current segment to the previous segment. If the current segment is the first one, the submitted segment structure will stay unchanged and false is returned. The segment should be either initialized using **[[cwk_path_get_first_segment]]** or **[[cwk_path_get_last_segment]]**.
This function moves the current segment to the previous segment. If the current segment is the first one, the submitted segment structure will stay unchanged and false is returned. The segment should be either initialized using **[cwk_path_get_first_segment]({{ site.baseurl }}{% link reference/cwk_path_get_first_segment.md %})** or **[cwk_path_get_last_segment]({{ site.baseurl }}{% link reference/cwk_path_get_last_segment.md %})**.
## Parameters
* **segment**: The current segment which will be moved to the previous one.
+1 -1
View File
@@ -12,7 +12,7 @@ size_t cwk_path_join(const char *path_a, const char *path_b, char *buffer,
size_t buffer_size);
```
This function generates a new path by combining the two submitted paths. It will remove double separators, and unlike [[cwk_path_get_absolute]] it permits the use of two relative paths to combine. The result will be written to a buffer, which might be truncated if the buffer is not large enough to hold the full path. However, the truncated result will always be null-terminated. The returned value is the amount of characters which the resulting path would take if it was not truncated (excluding the null-terminating character).
This function generates a new path by combining the two submitted paths. It will remove double separators, and unlike [cwk_path_get_absolute]({{ site.baseurl }}{% link reference/cwk_path_get_absolute.md %}) it permits the use of two relative paths to combine. The result will be written to a buffer, which might be truncated if the buffer is not large enough to hold the full path. However, the truncated result will always be null-terminated. The returned value is the amount of characters which the resulting path would take if it was not truncated (excluding the null-terminating character).
## Parameters
* **path_a**: The first path which comes first.
+1 -1
View File
@@ -11,7 +11,7 @@ Joins multiple paths together.
size_t cwk_path_join_multiple(const char **paths, char *buffer,
size_t buffer_size);
```
This function generates a new path by joining multiple paths together. It will remove double separators, and unlike cwk_path_get_absolute it permits the use of multiple relative paths to combine. The last path of the submitted string array must be set to NULL. The result will be written to a buffer, which might be truncated if the buffer is not large enough to hold the full path. However, the truncated result will always be null-terminated. The returned value is the amount of characters which the resulting path would take if it was not truncated (excluding the null-terminating character).
This function generates a new path by joining multiple paths together. It will remove double separators, and unlike [cwk_path_get_absolute]({{ site.baseurl }}{% link reference/cwk_path_get_absolute.md %}) it permits the use of multiple relative paths to combine. The last path of the submitted string array must be set to NULL. The result will be written to a buffer, which might be truncated if the buffer is not large enough to hold the full path. However, the truncated result will always be null-terminated. The returned value is the amount of characters which the resulting path would take if it was not truncated (excluding the null-terminating character).
## Parameters
* **paths**: An array of paths which will be joined.
+1 -1
View File
@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
size_t length;
cwk_path_set_style(CWK_STYLE_WINDOWS);
cwk_path_get_root("C:\test.txt", &length);
cwk_path_get_root("C:\\test.txt", &length);
printf("The root length is '%zu'.", length);
return EXIT_SUCCESS;
}