comparison misc/fc-pcsc-atr.c @ 26:4bd6275d7c79

fc-pcsc-atr trivial program added
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Feb 2021 15:53:12 +0000
parents simtool/main.c@2071b28cd0c7
children 84d1c31d0fad
comparison
equal deleted inserted replaced
25:9f28700301a6 26:4bd6275d7c79
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <pcsclite.h>
4 #include <winscard.h>
5 #include "cardif.h"
6
7 main(argc, argv)
8 char **argv;
9 {
10 int rc;
11
12 setup_pcsc_context();
13 get_reader_name();
14 printf("Card reader name: %s\n", reader_name_buf);
15 connect_to_card();
16 rc = retrieve_atr();
17 if (rc)
18 error_exit();
19 else
20 good_exit();
21 }