1SC_DETECT_CARD_PRESE(3)      OpenSC API reference      SC_DETECT_CARD_PRESE(3)
2
3
4

NAME

6       sc_detect_card_presence - Detect presence of smart card in a reader
7

SYNOPSIS

9          #include <opensc.h>
10
11          int sc_detect_card_presence(sc_reader_t *reader, int slot_id);
12
13
14

DESCRIPTION

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

RETURN VALUE

19       If an error occurred, the return value is a a negative OpenSC error
20       code. If no card is present, 0 is returned. Otherwise, a positive value
21       is returned, which is a combination of flags. The flag
22       SC_SLOT_CARD_PRESENT is always set. In addition, if the card was
23       exchanged, the SC_SLOT_CARD_CHANGED flag is set.
24
25
26
27opensc                            05/04/2007           SC_DETECT_CARD_PRESE(3)
Impressum