FreeCalypso > hg > freecalypso-hwlab
view uicc/exit.c @ 165:7a4e8d23ab3a
eeproms/icestick: programming for Lattice Icestick
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 30 Jul 2023 18:10:51 +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); }