Thread: [Solved] Correct way to do this?
View Single Post
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 03-20-2018 , 11:04   Re: Correct way to do this?
Reply With Quote #5

@indraraj striker

That did the job, thanks!

@Bugsy && Fysiks

At first, I thought charsmax() was the same as sizeof() - 1, that's what everyone said until I found
Quote:
Originally Posted by fysiks View Post
You use charsmax() for strings because the last character in a string must be "^0".

sizeof() can be used in many many places. Depends on what you need.
Although, it gave me an index out of bounds error when I used sizeof(). So I suppose using sizeof() - 1 instead of charsmax().

Also I should have made that a global variable, because I need that code to be stored and used somewhere else, my mistake. That's why I used format.

Thanks for the replies!

Last edited by redivcram; 03-20-2018 at 11:09.
redivcram is offline