Function gnunet_sys::GNUNET_DISK_mkdtemp[][src]

pub unsafe extern "C" fn GNUNET_DISK_mkdtemp(t: *const c_char) -> *mut c_char

Create an (empty) temporary directory on disk. If the given name is not an absolute path, the current ‘TMPDIR’ will be prepended. In any case, 6 random characters will be appended to the name to create a unique name.

@param t component to use for the name; does NOT contain “XXXXXX” or “/tmp/”. @return NULL on error, otherwise name of freshly created directory