Please help me
#7

Код:
strtok(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;
}
You added this somewhere ?
Reply


Messages In This Thread
Please help me - by sebacol - 12.02.2010, 19:34
Re: Please help me - by adsy - 12.02.2010, 20:19
Re: Please help me - by sebacol - 13.02.2010, 06:39
Re: Please help me - by sebacol - 13.02.2010, 11:15
Re: Please help me - by VonLeeuwen - 13.02.2010, 12:24
Re: Please help me - by sebacol - 13.02.2010, 15:25
Re: Please help me - by VonLeeuwen - 13.02.2010, 15:43
Re: Please help me - by sebacol - 13.02.2010, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)