---
name: "sc_file_dup"
section: "3"
platform: "linux"
package: "libopensc2-dev"
version: "0.11.13-1.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_file_dup"
---

# sc\_file\_dup(3)

Duplicate a file object

## NAME

sc\_file\_dup - Duplicate a file object

## SYNOPSIS

```
#include <opensc.h>
void sc_file_dup(sc_file_t **dest, const sc_file_t *src)
```

## DESCRIPTION

This function creates a new file object, duplicates all file information from *src* into it, and stores it in the pointer pointed to by *dest*. This object must be released with sc\_file\_free() after use.
