FreeCalypso > hg > fc-sim-tools
comparison libcommon/be_init.c @ 46:e2ef4b8e4136
main tools: display spenh info when serial back end is used
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Mar 2021 02:08:02 +0000 |
parents | c9ef9e91dd8e |
children |
comparison
equal
deleted
inserted
replaced
45:9eb5460f51a6 | 46:e2ef4b8e4136 |
---|---|
13 | 13 |
14 #define MAX_INIT_STRING 254 | 14 #define MAX_INIT_STRING 254 |
15 | 15 |
16 char be_reader_name[MAX_INIT_STRING+1]; | 16 char be_reader_name[MAX_INIT_STRING+1]; |
17 char be_atr_string[MAX_INIT_STRING+1]; | 17 char be_atr_string[MAX_INIT_STRING+1]; |
18 char be_extra_info[MAX_INIT_STRING+1]; | |
18 | 19 |
19 static void | 20 static void |
20 copy_without_leading_space(input_str, dest) | 21 copy_without_leading_space(input_str, dest) |
21 char *input_str, *dest; | 22 char *input_str, *dest; |
22 { | 23 { |
51 copy_without_leading_space(inbuf + 1, be_atr_string); | 52 copy_without_leading_space(inbuf + 1, be_atr_string); |
52 break; | 53 break; |
53 case 'R': | 54 case 'R': |
54 copy_without_leading_space(inbuf + 1, be_reader_name); | 55 copy_without_leading_space(inbuf + 1, be_reader_name); |
55 break; | 56 break; |
57 case 'X': | |
58 copy_without_leading_space(inbuf + 1, be_extra_info); | |
59 break; | |
56 } | 60 } |
57 } | 61 } |
58 return(0); | 62 return(0); |
59 } | 63 } |