Share this page

# getcwd

Example: getcwd | File Manipulation Functions

Returns the name of the current working directory.

    char *getcwd( char *path, int numchars);

path | The path name.
numchars | The maximum number of characters to retrieve.

For getcwd details, refer to your C language documentation.

## Return Values

This function returns zero upon success and (-1) for failure.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: