Difference between revisions of "ISInterface:SetRoot"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(One intermediate revision by the same user not shown)
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];
 +
pISInterface->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]]

Latest revision as of 23:01, 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];
pISInterface->SetRoot("scripts\\test.iss",FullPath);
printf("Absolute Path: %s",FullPath);

See Also