Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>fnmerge() make new file name</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson