joeh100 Member Nov 10, 2010 #1 How to pass a string constant to a function? EX: void WriteStringConstant(rom char * StringConstant) { } When I call the above function with WriteStringConstant("Test"); I get the following warning: Warning [2066] type qualifier mismatch in assignment. Last edited: Nov 10, 2010
How to pass a string constant to a function? EX: void WriteStringConstant(rom char * StringConstant) { } When I call the above function with WriteStringConstant("Test"); I get the following warning: Warning [2066] type qualifier mismatch in assignment.
P Pommie Well-Known Member Most Helpful Member Nov 10, 2010 #2 Try, WriteStringConstant((rom char*)"Test"); Mike.