Mercurial > hg > toybox
comparison toys/sort.c @ 538:9ab5ee341d47
Replace deprecated libc function with its totally renamed equivalent.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 09 Mar 2012 20:33:16 -0600 |
parents | 31215cc6c9f2 |
children |
comparison
equal
deleted
inserted
replaced
537:f70187762108 | 538:9ab5ee341d47 |
---|---|
357 } | 357 } |
358 | 358 |
359 // Which flag is this? | 359 // Which flag is this? |
360 | 360 |
361 optlist = toys.which->options; | 361 optlist = toys.which->options; |
362 temp2 = index(optlist, *temp); | 362 temp2 = strchr(optlist, *temp); |
363 flag = (1<<(optlist-temp2+strlen(optlist)-1)); | 363 flag = (1<<(optlist-temp2+strlen(optlist)-1)); |
364 | 364 |
365 // Was it a flag that can apply to a key? | 365 // Was it a flag that can apply to a key? |
366 | 366 |
367 if (!temp2 || flag>FLAG_b | 367 if (!temp2 || flag>FLAG_b |