sc_disconnect_card(3)

sc_disconnect_card3

Disconnect from a smart card

Usage

#include <opensc.h>
int sc_disconnect_card(sc_card_t *card, int action);

Overview

This function disconnects from card, and frees the card structure. Any locks made by the application must be released before calling this function.

The action parameter is not used at the moment and should be set to 0.

The card is not reset nor powered down after the operation.

Return value

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

Releases

4 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0

From libopensc2-dev 0.11.13-1.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.