mfsHFnmerge

Syntax

void mfsHFnmerge(u8* path,const u8* drive, const u8* dir,const u8* name, const u8* type)

Arguments

*path   Path name
*drive   Drive name
*dir   Directory name
*name   File name
*type   File extension

Return value

None

Function

Creates a pathname by combining components

Description

This function creates a pathname by combining the components specified by drive, dir, name, and type and stores it in path. When drive is NULL or empty, no drive name is added to the pathname. If the delimiter ':' is missing, it is added to the pathname. When dir is NULL or empty, no directory name is added. If the delimiter '/' is missing, it is added to the pathname. When name is NULL or empty, no file name is added. When type is NULL or empty, no extension is added. If the leading period '.' is missing, it is added to the pathname.

mfsHFmerge performs the opposite operation to the operation performed by mfsHFnsplit.