fnmerge

Top 

Declaration:

void fnmerge(char path[], char drive[], char dir[], char name[], char ext[]);

 

Builds a path from component parts.

fnmerge makes the path name from its components. The new path name is

X:\DIR\SUBDIR\NAME.EXT

where:

drive =       X

dir   =       \DIR\SUBDIR\

name  =       NAME

ext   =       .EXT

fnmerge assumes there is enough space in path for the constructed path name. The maximum constructed length, MAXPATH, is defined in system.h.

fnmerge and fnsplit are invertible: if you split the given path with fnsplit, then merge the resultant components with fnmerge and you end up with this path.