@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
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!