ISInterface:GetCWD
From Lavish Software Wiki
Contents |
[edit]
Syntax
- char *GetCWD(char *buffer, unsigned long buflen)
[edit]
Purpose
Retrieves the current working directory for LavishScript, using the currently executing script's current working directory if called during script execution phase
[edit]
Usage
[edit]
Parameters
- char *buffer
- [out] Pointer to a buffer
- unsigned long buflen
- [in] Length of the buffer
[edit]
Return Value
- char *
- Pointer to the buffer
[edit]
Examples
- Example code
char CWD[512];
pISInterface->GetCWD(CWD,sizeof(CWD));
printf("Current Working Directory: %s",CWD);
[edit]
