Strlen O_O
#1

I don't know why....

I have this:

Код:
if (strcmp(cmd, "/changenick", true)==0)
{
	tmp = strtok(cmdtext, idx);
	printf("length: %d",strlen(tmp));
	return 1;
}
If i insert this:



My log say:

Код:
[20:19:32] length: 19
should not be 21?
Reply
#2

OK, THANKS TO ALL, I HAVE FOUND PROBLEM, AND THIS IS SOLUTION: http://forum.sa-mp.com/index.php?top...1809#msg781809

You can Lock.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)