---
name: "sc_unlock"
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_unlock"
---

# sc\_unlock(3)

Unlock a card

## NAME

sc\_unlock - Unlock a card

## SYNOPSIS

```
#include <opensc.h>
int sc_unlock(struct sc_card *card);
```

## DESCRIPTION

This function unlocks *card*. That is, the lock count is decreased, and the card unlocked if it reaches zero.

## RETURN VALUE

Returns 0 if successful, or a negative value in case of error.
