shape1
shape2
shape3
shape4
shape7
shape8

Быстрая замена strtok

  • Автор темы Amfy
  • Дата начала

Статус
Закрыто для дальнейших ответов.
A

Amfy

Гость
Гость
stock strcharsplit(const string[], &index, seperator=' ')
{
new result[20], i = 0;
if (index != 0 && string[index] != '\0') index++;
while (string[index] && string[index] != seperator && string[index] != '\r' && string[index] != '\n')
{
result[i++] = string[index++];
}
return result;
}

Функция strcharsplit быстрее strtok примерно на 20%

 
Статус
Закрыто для дальнейших ответов.