Difference between revisions of "ISInterface:GetCWD"

From Lavish Software Wiki
Jump to navigation Jump to search
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
 
Retrieves the current working directory for LavishScript, using the currently executing script's current working directory if called during script execution phase
Line 4: Line 6:
 
== Usage ==
 
== Usage ==
 
=== Parameters ===
 
=== Parameters ===
''none''
+
*char *buffer
 +
:'''[out]''' Pointer to a buffer
 +
*unsigned long buflen
 +
:'''[in]''' Length of the buffer
 
=== Return Value ===
 
=== Return Value ===
 
*char *
 
*char *
: Pointer to the current working directory
+
: 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 ==

Revision as of 22:22, 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