Originally Posted by Aku_Aku
1. No need to use #define PRAGMA_POINTER
First of all I highly doubt that, of course, if you don't want lite-c to mess around with pointers and shit.
It's better to code without shitty pointer autodetection, anyone will tell you this.

Secondly, why are you trying to copy an empty string into another string?? txt_create creates an empty string (""), that's causing the W1501 error.
Here is working example (yes with PRAGMA_POINTER, not because it helps to fix the problem, but because it prevents lite-c from doing it's "magic" under the certains)
Code
#define PRAGMA_POINTER

void main()
{
	STRING *actual_line = "";
	TEXT *text_lines = txt_create(100, 0);
	int line_number = 0;
	
	int i = 0; 
	for(i = 0; i < 100; i++)
	{
		str_cpy((text_lines->pstring)[i], " "); // 1 space
	}
	
	str_cpy(actual_line, (text_lines->pstring)[line_number]);
	str_cat(actual_line, "add text for testing"); // this is only for testing, so you can see that 1 space from text_lines is there
	
	while(!key_esc)
	{
		draw_text(actual_line, 10, 10, COLOR_WHITE);
		draw_text("example text", 10, 30, COLOR_WHITE);
		wait(1);
	}
}
Also, just friendly advice, don't do stuff like this, if you want anyone to read your code:
Code
if (0 < text_lines->strings && line_number < text_lines->strings)
Read about code convention, C language coding style, etc. You'll get your hands beaten with a stick if you do this in a big team or a company. grin

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung