get_temporary_path


template <class character>
unsigned get_temporary_path(unsigned size,
                            character* buffer)

This function obtains the temporary path name.

Parameters

unsigned size

The size of the buffer pointed to by the following parameter.

character* buffer

A pointer to a buffer to hold the temporary path name.

Return

unsigned

If the temporary path fits the specified buffer, the value returned is the number of characters transferred to the buffer (not including the null terminator). If the temporary path does not fit the buffer, the value returned is the size of the buffer required to hold the temporary path name (including the null terminator). Zero is returned when an error occurs.

Notes

The path returned by this directory is: