FreeCalypso > hg > fc-pcsc-tools
diff simtool/fplmn.c @ 199:7ecc08e55d39
fc-simtool fplmn-write-list command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 07 Mar 2021 02:55:35 +0000 |
parents | 3ddbc3fea5f0 |
children |
line wrap: on
line diff
--- a/simtool/fplmn.c Sun Mar 07 02:48:12 2021 +0000 +++ b/simtool/fplmn.c Sun Mar 07 02:55:35 2021 +0000 @@ -90,6 +90,21 @@ return update_bin_op(idx * 3, rec, 3); } +cmd_fplmn_write_list(argc, argv) + char **argv; +{ + int rc; + u_char buf[12]; + + rc = select_ef_fplmn(); + if (rc < 0) + return(rc); + rc = read_plmn_list_from_file(argv[1], buf, 12); + if (rc < 0) + return(rc); + return update_bin_op(0, buf, 12); +} + cmd_fplmn_erase(argc, argv) char **argv; {