fnmerge() Make New File Name
#include <dir.h>
void fnmerge(path,drive,dir,name,ext);
char *path; Full name
char *drive; Drive
char *dir; Directory/subdirectory
char *name; File name
char *ext; File extension
fnmerge() makes a file name from its components 'drive', 'dir',
'name' and 'ext', and stores it in 'path'. The new file's full path
name is:
X:\DIR\SUBDIR\NAME.EXT
where:
X = 'drive'
\DIR\SUBDIR\ = 'dir'
NAME = 'name'
EXT = 'ext'
fnmerge() assumes there is enough space for the constructed path
name. The maximum constructed length is MAXPATH with a value of 80.
Returns: There is no return value.
Notes: fnmerge() and fnsplit() are invertible; if you split
'path' with fnsplit(), then merge the resultant
components with fnmerge(), the result is 'path'.
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster