i have a program in C (Unix - SOlaris5.7), and i have the next question:
i have a lot of char variable, and i want store their values in a char array. The problem is what i don�t know how to put the char variable's value into the array, and i don`t know how to define the array
I think your problem is that you are trying to copy a single character. You have to do this as:
valor_detallechar[pos]=regcaec.sexben;
The thing is that valor_detallechar[pos] is used to calculate the position where the code will act (the pointer in your error), while the regcaec.sexben, being a character, is treated as ascii code (integer).
I mean, strcpy requires strings (pointers to the base of the strings, actually) as arguments. Your second argument is not "const char *src".
I haven't been terribly clear, but hope that this helps.