Simple string assignment problem

Discussion created by protoease on Dec 20, 2010
Latest reply on Dec 21, 2010 by bigmac

Banging my head against the wall on the following simple character string assignment problem:


char user_text[6];


// somewhere else in code:

user_text[] = {"text"};


Compiler throws up alarm on C1830: Modifiable lvalue expected.


What am I doing wrong?


I don't want to include string support as I can't support the burden size-wise.


Appreciate any help, I'm sure it is something silly and simple.