Constructs an ASCII path from the specified elements.
#include <fsio.h> int construct ( char *path, char *server, char *volume, char *directory, char *name, char *extension, int flags);
(OUT) Points to the constructed path. This buffer must be large enough to hold the elements specified in the rest of the arguments.
(IN) Points to the null-terminated name of the server. You can set it to NULL.
(IN) Points to the null-terminated name of the volume. You can set it to NULL.
(IN) Points to the null-terminated name of the directory. This string can contain more than one element. You can set it to NULL.
(IN) Points to the null-terminated name of the file. You can set it to NULL.
(IN) Points to the null-terminated file extension. Set it to NULL if you are going to use a series of deconstruct/construct calls. The name parameter in deconstruct always includes the extension, if one exists. If the extension is not to be added redundantly to the pathname during reconstruction, extension must be passed as NULL.
(IN) Specifies the type of delimiter to use between the elements of the path. Although you can OR any of the following flags together, you are responsible for selecting a combination that defines a known format.
Always returns 0.
The construct function accepts one or more null-terminated strings in code page 437 (8-bit ASCII) and concatenates these strings into a path according to what strings are filled in (what argument pointers are not passed as NULL) and to the flags specified in the type parameter. All parameters except path are optional and may be passed as NULL. The caller is responsible for ensuring that path can hold the resulting string.
The flags parameter can be set to PATH_UNDEF or set to a value that governs the directory delimiter to use and, to some extent, the layout of the string.