erm  GetProcessArgc

Chapter 2: Bridged Functions

getCwd

Description

Retrieves the application’s current working directory.

Syntax

int getCwd(string *workingDir);

Parameter

Description

workingDir

String to which you want to put the working directory.

Return value

Integer.

Returns 1 for success, and 0 for failure.

Examples

Example 23

string szHome
getCwd(&szHome);
erm(“my home [%s]”, szHome);




Copyright © 2005. Sybase Inc. All rights reserved. GetProcessArgc

View this book as PDF