Difference between revisions of "ISInterface:SetRoot"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | == Syntax== | ||
+ | *char *SetRoot(char *Filename, char *Dest) | ||
== Purpose == | == Purpose == | ||
− | + | Sets '''Filename''' into an absolute path with the [[ISInterface:GetCWD|Current Working Directory]]. | |
== Usage == | == Usage == | ||
=== Parameters === | === Parameters === | ||
+ | *char *Filename | ||
+ | :'''[in]''' Name of file or path to set as an absolute path | ||
+ | *char *Dest | ||
+ | :'''[out]''' Pointer to the buffer to populate with the absolute path | ||
=== Return Value === | === Return Value === | ||
− | + | *char * | |
+ | :returns same as '''Dest''' | ||
== Examples == | == Examples == | ||
+ | ;Example code | ||
+ | char FullPath[512]; | ||
+ | SetRoot("scripts\\test.iss",FullPath); | ||
+ | printf("Absolute Path: %s",FullPath); | ||
== See Also == | == See Also == | ||
* [[ISXDK:ISInterface|ISInterface]] | * [[ISXDK:ISInterface|ISInterface]] | ||
− | + | * [[ISInterface:GetScriptCWD|ISInterface::GetScriptCWD]] | |
+ | * [[ISInterface:GetCWD|ISInterface::GetCWD]] | ||
+ | * [[ISInterface:GetInnerSpacePath|ISInterface::GetInnerSpacePath]] | ||
[[Category:ISXDK]] | [[Category:ISXDK]] | ||
[[Category:ISInterface]] | [[Category:ISInterface]] |
Revision as of 22:47, 1 September 2005
Syntax
- char *SetRoot(char *Filename, char *Dest)
Purpose
Sets Filename into an absolute path with the Current Working Directory.
Usage
Parameters
- char *Filename
- [in] Name of file or path to set as an absolute path
- char *Dest
- [out] Pointer to the buffer to populate with the absolute path
Return Value
- char *
- returns same as Dest
Examples
- Example code
char FullPath[512]; SetRoot("scripts\\test.iss",FullPath); printf("Absolute Path: %s",FullPath);