comparison uicc/exit.c @ 130:f691a19f191d

fc-uicc-tool skeleton started
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 04 Feb 2021 00:08:12 +0000
parents
children
comparison
equal deleted inserted replaced
129:2adb802b2a98 130:f691a19f191d
1 #include <sys/types.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <pcsclite.h>
5 #include <winscard.h>
6 #include "globals.h"
7
8 good_exit()
9 {
10 SCardDisconnect(hCard, SCARD_UNPOWER_CARD);
11 SCardReleaseContext(hContext);
12 exit(0);
13 }
14
15 error_exit()
16 {
17 SCardDisconnect(hCard, SCARD_UNPOWER_CARD);
18 SCardReleaseContext(hContext);
19 exit(1);
20 }