Space at the end of a string, fread()
#5

Hmm, Now I noticed that it are 2 spaces zo I changed -1 to -2 and it still works. But why is it so weird?

Код:
strdel(passwordtxt,strlen(passwordtxt)-2,strlen(passwordtxt));
So what this in fact does is, that it deletes the characters from the length of the string -2 until the end of the string, don't it?
Reply


Messages In This Thread
Space at the end of a string, fread() - by pascallj - 19.06.2009, 16:24
Re: Space at the end of a string, fread() - by pascallj - 20.06.2009, 18:32
Re: Space at the end of a string, fread() - by Joe Staff - 20.06.2009, 19:52
Re: Space at the end of a string, fread() - by ledzep - 20.06.2009, 19:54
Re: Space at the end of a string, fread() - by pascallj - 21.06.2009, 10:21
Re: Space at the end of a string, fread() - by Andom - 21.06.2009, 15:12

Forum Jump:


Users browsing this thread: 2 Guest(s)