Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - makepath() generate full path from its components http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 makepath()          Generate full path from its components
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   proc makepath extern
   param       char    cPath, ;
         const char(1) cDrive, ;
         const char    cDirectory, ;
         const char(8) cFileName, ;
         const char(3) cFileExt

 Arguments
   cPath is the destination string to receive full path name.
   cDrive is the drive letter (without ":\" characters).
   cDirectory is the directory string (prepended but not followed by a
      "\" character).
   cFileName is the file name without extension.
   cFileExt is the file name extension (without dot).

 Return
   None.

 Description
   The makepath() function composes a full path name from its components.
   See the Arguments section above and the example for correct use of
   parameters.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_makepath
   vardef
      char cPath, cDrive, cDirectory, cFileName, cFileExt, cOptions
   enddef
   makepath( cPath, "c", "\force\bin", "force", "exe" )
   ? cPath
   splitpath( cPath, cDrive, cDirectory, cFileName, cFileExt )
   ? cDrive, cDirectory, cFileName, cFileExt
   splitcommand( cPath + " test.prg", cDrive, cDirectory, ;
      cFileName, cFileExt, cOptions )
   ? cDrive, cDirectory, cFileName, cFileExt, cOptions
   endproc

   proc main
   Test_makepath()
   endproc

See Also: splitcommand() splitpath()

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