📄 sc_connect_card.3
字号:
.TH sc_connect_card 3 "April 2003" "OpenSC Programmer's Manual.SH NAMEsc_connect_card \- connect to smart card in reader.SH SYNOPSIS.nf.B #include <opensc.h>.sp.BI "int sc_connect_card(sc_reader_t *" reader ",.BI " int " slot ", sc_card_t **" card ");.fi.SH DESCRIPTIONThis function connects to a card in a reader, resets the cardand retrieves the ATR (Answer To Reset). Based on the ATR, ittries to auto-detect which card driver to use..PPThe \fIslot\fP parameter identifies the card reader's slot.Slots are numbered consecutively, starting at \fB0\fP..PPIf OpenSC was able to connect to the card, a pointer to the\fBsc_card_t\fP object is stored in the location pointer toby the \fIcard\fP parameter. The card handle should bereleased with \fBsc_disconnect_card\fP(3) when no longer in used..SH RETURN VALUEIf an error occurred, a negative error code is returned, as describedin \fbsc_error\fP(3). Otherwise, the function will return 0..SH SEE ALSO.BR sc_establish_context (3),.BR sc_disconnect_card (3)..SH AUTHORThis manual page was written by Olaf Kirch <okir@suse.de>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -