| www.delorie.com/djgpp/doc/libc-2.01/libc_281.html | search |
#include <dir.h> void fnmerge (char *path, const char *drive, const char *dir, const char *name, const char *ext);
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.
None.
char buf[MAXPATH]; fnmerge(buf, "d:", "/foo/", "data", ".txt");
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |