sc_detect_card_presence(3)

sc_detect_card_presence3

Detect presence of smart card in a reader

Usage

#include <opensc.h>
int sc_detect_card_presence(sc_reader_t *reader, int slot_id);

Overview

This function checks whether reader has a card present in slot_id.

Return value

If an error occurred, the return value is a a negative OpenSC error code. If no card is present, 0 is returned. Otherwise, a positive value is returned, which is a combination of flags. The flag SC_SLOT_CARD_PRESENT is always set. In addition, if the card was exchanged, the SC_SLOT_CARD_CHANGED flag is set.

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.