comparison splitargv.c @ 21:01e77066f72b default tip

Add TODO item
author Daniel O'Connor <darius@dons.net.au>
date Sun, 15 Feb 2015 16:15:23 +1030
parents 76a6bad110e2
children
comparison
equal deleted inserted replaced
20:76a6bad110e2 21:01e77066f72b
31 /* Split command string on space/tab boundaries into argv/argc 31 /* Split command string on space/tab boundaries into argv/argc
32 * 32 *
33 * Ignore the first 'skip' parameters. 33 * Ignore the first 'skip' parameters.
34 * If maxargs is exceeded return 1 otherwise 0 34 * If maxargs is exceeded return 1 otherwise 0
35 * 35 *
36 * TODO: handle escape chars 36 * TODO: handle escape chars, collapse whitespace
37 */ 37 */
38 int 38 int
39 splitargv(char *buf, unsigned skip, char *argv[], unsigned maxargs, int *argc) { 39 splitargv(char *buf, unsigned skip, char *argv[], unsigned maxargs, int *argc) {
40 char **btmp; 40 char **btmp;
41 41