char *parsetheitem(char *stringz,int numb,char devider)
{
char tstring[100];
int LineNumber2 = 0;
for (int z = 0; z < sizeof(stringz); z++)
{
if (stringz[z] == NULL)
break;
if (stringz[z] == devider)
{
LineNumber2++;
if(LineNumber2==numb)
{
return tstring;
}
memset(tstring, 0, 100);
}
else
sprintf(tstring, "%s%c", tstring, stringz[z]);
}
}
char* hhh ="wee|how|can|you|do|that";
char * keyp1 = parsetheitem(hhh,1,'|';
char * keyp2 = parsetheitem(hhh,2,'|';
char * keyp3 = parsetheitem(hhh,3,'|';
char * keyp4 = parsetheitem(hhh,5,'|';
keyp1 = wee;
keyp2 = how;
keyp3 = can;
keyp4 = do
Copyright © 2024, NextGenUpdate.
All Rights Reserved.