build_path()
#
build_path()
constructs a file path by concatenating multiple path segments, ensuring proper directory separators and removing redundant slashes.
Prototype
char *build_path(
char *bf,
size_t bfsize,
...
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Buffer to store the constructed path. |
|
|
Size of the buffer |
|
|
Variable number of path segments to concatenate, terminated by |
Return Value
Returns a pointer to bf
containing the constructed path.
Notes
Ensures that the resulting path does not have redundant slashes and properly formats directory separators.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples