Error: invalid array assignment

Exactly.

He uses string constants, they are already “allocated“. No point to malloc() and strcpy();

If your strings are constants, then just assign and forget :slight_smile:

1 Like