#include <string.h>

#define CODE_SIZE  3
#define ADD_USER_KEY  '*'
#define DELETE_USER_KEY '#'

#define NORMAL 0
#define ADD_USER 1
#define DELETE_USER 2

typedef struct tCardAndCode {
  int  cardLength;
  char  *cardId;
  int  codeLength;
  char  *codeId;
  } tCardAndCode;

typedef struct tListCardAndCode {
  tCardAndCode  *record;
  tCardAndCode  *next;
  } tListCardAndCode;