Originally Posted By: Reconnoiter
Quote:
dont understand why you are doing this .

Code:

//string off 255 spaces
STRING* input=str_create("#255");
inkey(input);
while(1)
{
draw_text(input,0,0,COLOR_RED);
wait(1);
}
, how to get this working if you are using a global string?

globally initializing STRING* input_str = "#100"; doesnt work right when I am editing it with inkey and I have no extra space to write letters/numbers.


there's no need for global initialization .

Code:
//global level
STRING *glob_str;

//some function
void foo ()
{
     glob_str=str_create ("#100");
}



what I don't understand is when you write "extra space" , because if you initialize with #100 it means you have a string that can take 100 characters .

do you mean you want to write blank spaces in the string or do you mean you want to resize the string length?


Compulsive compiler