warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")
#6

Quote:
Originally Posted by SapMan
View Post
When I put it like that, it does not give me warnings. Why?

PHP Code:
TestText(text[90])
{
    
strreplace(text"test_01""replace_01");
    
strreplace(text"test_02""replace_02");
    return 
1;

Because now the array size is known. Which now results in a limited max. length of the string. Just pass the size of the array as a seperate function parameter (or use this, knowing it's limited to 90 characters).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)