pcsc-lite 2.3.0
testpcsc.c File Reference

This is a test program for pcsc-lite. More...

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pcsclite.h"
#include "winscard.h"
#include "reader.h"

Go to the source code of this file.

Macros

#define PANIC   0
 
#define DONT_PANIC   1
 
#define USE_AUTOALLOCATE
 
#define BLUE   "\33[34m"
 
#define RED   "\33[31m"
 
#define BRIGHT_RED   "\33[01;31m"
 
#define GREEN   "\33[32m"
 
#define NORMAL   "\33[0m"
 
#define MAGENTA   "\33[35m"
 

Functions

static void test_rv (LONG rv, SCARDCONTEXT hContext, int dont_panic)
 
int main (int argc, char **argv)
 

Detailed Description

This is a test program for pcsc-lite.

Definition in file testpcsc.c.

Macro Definition Documentation

◆ BLUE

#define BLUE   "\33[34m"

Definition at line 52 of file testpcsc.c.

◆ BRIGHT_RED

#define BRIGHT_RED   "\33[01;31m"

Definition at line 54 of file testpcsc.c.

◆ DONT_PANIC

#define DONT_PANIC   1

Definition at line 48 of file testpcsc.c.

◆ GREEN

#define GREEN   "\33[32m"

Definition at line 55 of file testpcsc.c.

◆ MAGENTA

#define MAGENTA   "\33[35m"

Definition at line 57 of file testpcsc.c.

◆ NORMAL

#define NORMAL   "\33[0m"

Definition at line 56 of file testpcsc.c.

◆ PANIC

#define PANIC   0

Definition at line 47 of file testpcsc.c.

◆ RED

#define RED   "\33[31m"

Definition at line 53 of file testpcsc.c.

◆ USE_AUTOALLOCATE

#define USE_AUTOALLOCATE

Definition at line 50 of file testpcsc.c.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 76 of file testpcsc.c.

◆ test_rv()

static void test_rv ( LONG rv,
SCARDCONTEXT hContext,
int dont_panic )
static

Definition at line 59 of file testpcsc.c.