osdCWDGet

osdCWDGet

osd

1998 12-05


NAME

osdCWDGet - get the current working directory


SYNOPSIS

char *osdCWDGet(char *buffer, int size)

osdCWDGet() gets the current working directory and puts into the specified buffer. The length of buffer is specified by size. If the string to be returned is longer than the specified size, this function fails, returning NULL.


If buffer is NULL, osdCWDGet() will allocate the space and return a pointer to it.


osdCWDGet() returns a pointer to the current directory pathname if successful. On failure, NULL is returned.


ARGUMENTS


buffer the buffer in which the current working directory is returned
size the size of buffer in bytes