cmd = strtok(cmdtext, idx); problem
#1

i updated to this now i have loads of error in my gm arrays size is to small how to fix please
and no im not useing sscanf
thanks
Код:
stock strtok(const stringdutils[], &index,seperator=' ')
{
	new length = strlen(stringdutils);
	new offset = index;
	new result[MAX_stringdutils];
	while ((index < length) && (stringdutils[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = stringdutils[index];
		index++;
	}

	result[index - offset] = EOS;
	if ((index < length) && (stringdutils[index] == seperator))
	{
		index++;
	}
	return result;
}
Reply


Messages In This Thread
cmd = strtok(cmdtext, idx); problem - by [HKS]dlegend - 24.11.2009, 18:17
Re: cmd = strtok(cmdtext, idx); problem - by Correlli - 24.11.2009, 20:07
Re: cmd = strtok(cmdtext, idx); problem - by Kayaque - 24.11.2009, 20:15
Re: cmd = strtok(cmdtext, idx); problem - by Correlli - 24.11.2009, 20:16
Re: cmd = strtok(cmdtext, idx); problem - by [HKS]dlegend - 24.11.2009, 21:15
Re: cmd = strtok(cmdtext, idx); problem - by mamorunl - 24.11.2009, 21:29

Forum Jump:


Users browsing this thread: 1 Guest(s)