.TH sc_disconnect_card 3 "April 2003" "OpenSC Programmer's Manual .SH NAME sc_disconnect_card \- disconnect from smart card .SH SYNOPSIS .nf .B #include .sp .BI "int sc_disconnect_card(sc_card_t *" card ", .BI " int " action "); .fi .SH DESCRIPTION This function disconnects from a card in a reader, and frees the card structure. Any locks made by the application must be released before calling this function. .PP The \fIaction\fP parameter is not used at the moment and should be set to 0. .PP The card is not reset nor powered down after the operation. .SH RETURN VALUE If an error occurred, a negative error code is returned, as described in \fbsc_error\fP(3). Otherwise, the function will return 0. .SH SEE ALSO .BR sc_connect_card (3). .SH AUTHOR This manual page was written by Olaf Kirch