Skip to main content

R_tmpnam

Function R_tmpnam 

Source
unsafe fn R_tmpnam(prefix: *const c_char, tempdir: *const c_char) -> *mut c_char
Expand description

Generate a temporary filename.

§Parameters

  • prefix: Filename prefix
  • tempdir: Directory for temp file

§Returns

Newly allocated string (must be freed with R_free_tmpnam). Checked wrapper for R_tmpnam. Calls R_tmpnam_unchecked and routes through with_r_thread. Generated from source location line 3537, column 8. Generated from source file miniextendr-api/src/ffi.rs.