FreeCalypso > hg > fc-pcsc-tools
diff simtool/plmnsel.c @ 102:9ce95d9c5c34
plmnsel-erase-all command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 17 Feb 2021 23:25:47 +0000 |
parents | 63c76f9d678a |
children | 32acef9d20ff |
line wrap: on
line diff
--- a/simtool/plmnsel.c Wed Feb 17 23:19:00 2021 +0000 +++ b/simtool/plmnsel.c Wed Feb 17 23:25:47 2021 +0000 @@ -167,3 +167,16 @@ } return(0); } + +cmd_plmnsel_erase_all(argc, argv) + char **argv; +{ + int rc; + u_char ffbuf[255]; + + rc = select_ef_plmnsel(); + if (rc < 0) + return(rc); + memset(ffbuf, 0xFF, curfile_total_size); + return update_bin_op(0, ffbuf, curfile_total_size); +}