Skip to main content

R_tmpnam2

Function R_tmpnam2 

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

Generate a temporary filename with extension.

§Parameters

  • prefix: Filename prefix
  • tempdir: Directory for temp file
  • fileext: File extension (e.g., “.txt”)

§Returns

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