Get current working directory.
Syntax
#include <unistd.h>
char *getcwd (char *destination, size_t size);
Parameters
-
destination
The array where the string will be written.
-
size
The size of the array.
Return Value
The return value is the same as the destination argument if successful or negaive on error.
-
EINVAL
The destination is null or invalid.
The size is invalid.
Remarks
None