[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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'.

See Also: fnsplit()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson