---
name: "sc_find_app_by_aid"
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_find_app_by_aid"
---

# sc\_find\_app\_by\_aid(3)

Find an application on a card

## NAME

sc\_find\_app\_by\_aid - Find an application on a card

## SYNOPSIS

```
#include <opensc.h>
const sc_app_info_t *sc_find_app_by_aid(sc_card_t *card,
                                        const unsigned char *aid,
                                        size_t aid_len);
```

## DESCRIPTION

This function finds an application on *card* by its *aid*. The AID´s length is specified in *aid\_len*.

Before calling this function, you MUST call sc\_enum\_apps() first.

## RETURN VALUE

Returns a sc\_app\_info\_t structure describing the application corresponding to *aid*, or NULL if none was found.
