FreeCalypso > hg > fc-pcsc-tools
diff simtool/plmnsel.c @ 198:3bde063234aa
fc-simtool plmnsel-write-list command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 07 Mar 2021 02:48:12 +0000 |
parents | 3ddbc3fea5f0 |
children |
line wrap: on
line diff
--- a/simtool/plmnsel.c Sun Mar 07 02:36:27 2021 +0000 +++ b/simtool/plmnsel.c Sun Mar 07 02:48:12 2021 +0000 @@ -117,6 +117,21 @@ return update_bin_op(idx * 3, rec, 3); } +cmd_plmnsel_write_list(argc, argv) + char **argv; +{ + int rc; + u_char buf[255]; + + rc = select_ef_plmnsel(); + if (rc < 0) + return(rc); + rc = read_plmn_list_from_file(argv[1], buf, curfile_total_size); + if (rc < 0) + return(rc); + return update_bin_op(0, buf, curfile_total_size); +} + cmd_plmnsel_erase(argc, argv) char **argv; {