is there any way to copy from char* to char[] other than using strcpy?
I tried this and does not work..
for ex
char* t1 = "hello";
char t2[6];
t2 = t1;
It is not compiling.. saying that incompatible types of assignment of ‘char*’ to char[6]
Thank you
Use strncpy: