Posts by davidbuzatto • 116 points
1 post
-
0
votes1
answer62
viewsA: I can’t copy a string array to a string array in a struct
c-strings are not "assignable" that way. You need to copy, in fact, character by character, from one array to the other. To do this, use the function strcpy() defined in the header string.h. I have…