FreeCalypso > hg > freecalypso-hwlab
view uicc/exit.c @ 171:88b8257d353b
eeproms: rm all configs that went to fc-usbser-tools
These configs need to be actively maintained, hence having more than one
official home location for them is a bad idea.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Sep 2023 05:21:56 +0000 |
parents | f691a19f191d |
children |
line wrap: on
line source
#include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <pcsclite.h> #include <winscard.h> #include "globals.h" good_exit() { SCardDisconnect(hCard, SCARD_UNPOWER_CARD); SCardReleaseContext(hContext); exit(0); } error_exit() { SCardDisconnect(hCard, SCARD_UNPOWER_CARD); SCardReleaseContext(hContext); exit(1); }