i = 0;
while(all[i] != ‘=‘)
{
vindex[i] = all[i];
i++;
}
vindex[i] = ‘\0‘;
i++;
vtypei = i;
while(all[i] != ‘=‘)
{
vtype[i - vtypei] = all[i];
i++;
}
vtype[i - vtypei] = ‘\0‘;
i++;
vvaluei = i;
while(all[i] != ‘=‘ && all[i] != ‘\0‘)
{
vvalue[i - vvaluei] = all[i];
i++;
}
vvalue[i - vvaluei] = ‘\0‘;
原文:http://www.cnblogs.com/mybabyyh/p/4201610.html