Difference between revisions of "ISInterface:GetCWD"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 23: Line 23:
 
== See Also ==
 
== See Also ==
 
* [[ISXDK:ISInterface|ISInterface]]
 
* [[ISXDK:ISInterface|ISInterface]]
* [[ISInterface:GetScriptCWD|GetScriptCWD]]
+
* [[ISInterface:GetScriptCWD|ISInterface::GetScriptCWD]]
* [[ISInterface:SetRoot|SetRoot]]
+
* [[ISInterface:SetRoot|ISInterface::SetRoot]]
* [[ISInterface:GetInnerSpacePath|GetInnerSpacePath]]
+
* [[ISInterface:GetInnerSpacePath|ISInterface::GetInnerSpacePath]]
 
[[Category:ISXDK]]
 
[[Category:ISXDK]]
 
[[Category:ISInterface]]
 
[[Category:ISInterface]]

Latest revision as of 22:36, 1 September 2005

Syntax

  • char *GetCWD(char *buffer, unsigned long buflen)

Purpose

Retrieves the current working directory for LavishScript, using the currently executing script's current working directory if called during script execution phase

Usage

Parameters

  • char *buffer
[out] Pointer to a buffer
  • unsigned long buflen
[in] Length of the buffer

Return Value

  • char *
Pointer to the buffer

Examples

Example code
char CWD[512];
pISInterface->GetCWD(CWD,sizeof(CWD));
printf("Current Working Directory: %s",CWD);


See Also