---
name: "sc_format_apdu"
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_format_apdu"
---

# sc\_format\_apdu(3)

Populate an APDU structure

## NAME

sc\_format\_apdu - Populate an APDU structure

## SYNOPSIS

```
#include <opensc.h>
void sc_format_apdu(struct sc_card *card, sc_apdu_t *apdu,
                    int cse, int ins, int p1, int p2);
```

## DESCRIPTION

This function populates the sc\_apdu\_t structure pointed to by *apdu* on *card*. It does not allocate memory. The *cse*, *ins*, *p1* and *p2* parameters correspond to the respective APDU parameters as described in the ISO 7816 standard.
