#include <stdio.h>

void  parse(char *line, char **argv)
{
	 while (*line != '\0') {	   /* if not the end of line */ 
		  while (*line == ' ' || *line == '\t' || *line == '\n')
			   *line++ = '\0';	 /* replace white spaces with 0	*/
		  *argv++ = line;		  /* save the argument position	 */
		  while (*line != '\0' && *line != ' ' &&  *line != '\t' && 
		  *line != '\n') 
			   line++;			 /* skip the argument until ...	*/
	 }
	 *argv = '\0';				 /* mark the end of argument list  */
}

int main(void){
	char *p[8] = {0};
	int i;
	parse("1", p);
	for(i=0;i<8;++i){
		if(p[i] == NULL){
			printf("%d:NULL\n", i);
			break;
		}
		printf("%d:'%s'\n", i, p[i]);
	}
	return 0;
}