Difference between revisions of "ISInterface:GetCWD"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
===Syntax===
 +
*char *GetCWD(char *buffer, unsigned long buflen)
 
== Purpose ==
 
== Purpose ==
 +
Retrieves the current working directory for LavishScript, using the currently executing script's current working directory if called during script execution phase
  
 
== Usage ==
 
== Usage ==
 
=== Parameters ===
 
=== Parameters ===
 +
*char *buffer
 +
:'''[out]''' Pointer to a buffer
 +
*unsigned long buflen
 +
:'''[in]''' Length of the buffer
 
=== Return Value ===
 
=== Return Value ===
 +
*char *
 +
: Pointer to the buffer
  
 
== Examples ==
 
== Examples ==
 +
;Example code
 +
char CWD[512];
 +
pISInterface->GetCWD(CWD,sizeof(CWD));
 +
printf("Current Working Directory: %s",CWD);
 +
  
 
== See Also ==
 
== See Also ==
 
* [[ISXDK:ISInterface|ISInterface]]
 
* [[ISXDK:ISInterface|ISInterface]]
 
+
* [[ISInterface:GetScriptCWD|ISInterface::GetScriptCWD]]
 +
* [[ISInterface:SetRoot|ISInterface::SetRoot]]
 +
* [[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