Char* to argc argv

From Yefu's notes
Jump to: navigation, search
	//change the command line to the format of argc and argv, 
	//similar to the signature of the main function of the C language. 
	int argc=0;
	char* argv[256];

	argv[argc]=strtok(commandline," ");
	argc++;
	while(argv[argc-1]!=NULL)
	{
		argv[argc]=strtok(NULL," ");
		argc++;
	}