stock strtok error
#3

Quote:
Originally Posted by LaPiMoNsTeR
Посмотреть сообщение
Try Change name of the function
So like this? If im not all out swimming
Marker green
Код:
stock offsert(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
Reply


Messages In This Thread
stock strtok error - by eclipses - 07.11.2014, 14:19
Re: stock strtok error - by LaPiMoNsTeR - 07.11.2014, 14:21
Re: stock strtok error - by eclipses - 07.11.2014, 14:23
Re: stock strtok error - by eclipses - 07.11.2014, 14:25
Re: stock strtok error - by Kaperstone - 07.11.2014, 14:28
Re: stock strtok error - by LaPiMoNsTeR - 07.11.2014, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)