分割字符串,该怎么解决

分割字符串
一个长的字符串,里面有空格,如何以空格为标志分割成许多字符串,用VC实现,MFC里面有这样的函数吗??

------解决方案--------------------
#include <string.h>
#include <stdio.h>

char string[] = "A string\tof ,,tokens\nand some more tokens ";
char seps[] = " ";
char *token;

void main( void )
{
printf( "%s\n\nTokens:\n ", string );
/* Establish string and get the first token: */
token = strtok( string, seps );
while( token != NULL )
{
/* While there are tokens in "string " */
printf( " %s\n ", token );
/* Get next token: */
token = strtok( NULL, seps );
}
}