comparison 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
comparison
equal deleted inserted replaced
101:63c76f9d678a 102:9ce95d9c5c34
165 if (rc < 0) 165 if (rc < 0)
166 return(rc); 166 return(rc);
167 } 167 }
168 return(0); 168 return(0);
169 } 169 }
170
171 cmd_plmnsel_erase_all(argc, argv)
172 char **argv;
173 {
174 int rc;
175 u_char ffbuf[255];
176
177 rc = select_ef_plmnsel();
178 if (rc < 0)
179 return(rc);
180 memset(ffbuf, 0xFF, curfile_total_size);
181 return update_bin_op(0, ffbuf, curfile_total_size);
182 }