Trouble defining strings

Posted By: Domino

Trouble defining strings - 03/08/23 22:20

Cannot define a string that is available and changable to all functions.
'STRING test_str = "Welcome";' does not seem to work.
Posted By: VoroneTZ

Re: Trouble defining strings - 03/21/23 13:27

string is a pointer, and you cannot set it this way

try this
Code
STRING* s = "Welcome"; //create string
str_cpy(s,"Hello "); // change string
Posted By: Domino

Re: Trouble defining strings - 03/21/23 18:54

Thanks Georgia
While 'string' is subject to this restriction, if a 'text '
is defined, the 'string' part is as strings used to be.
Problem solves.
© 2024 lite-C Forums