Go to the first, previous, next, last section, table of contents.


fnmerge

Syntax

#include <dir.h>

void fnmerge (char *path, const char *drive, const char *dir,
		const char *name, const char *ext);

Description

This function constructs a file path from its components drive, dir, name, and ext. If any of these is a NULL pointer, it won't be used. Usually, the drive string should include the trailing colon `:', the dir string should include the trailing slash `/' or backslash `\', and the ext string should include the leading dot `.'. However, if any of these isn't present, fnmerge will add them.

See section fnsplit.

Return Value

None.

Portability

not ANSI, not POSIX

Example

char buf[MAXPATH];
fnmerge(buf, "d:", "/foo/", "data", ".txt");


Go to the first, previous, next, last section, table of contents.