ISInterface:GetCWD

From Lavish Software Wiki
Jump to navigation Jump to search

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