I am trying to concat two const char * strings.
When i have a statement like strcat(a,b) I get the warning expected ‘char * restrict’ but argument is of type ‘const char *’
is there a way to call strcat that will not produce the warning?
Thanks!
strcat()modifies the first operand. Therefore it cannot beconst. But you passed it aconst char*.So you can’t use
strcat()on twoconst *charstrings.