¿Cómo concat dos char * en C?
Recibo un búfer char * que tiene una longitud de 10. Pero quiero concatenar todo el contenido en mi estructura que tiene una variable char *.
typedef struct{
char *buffer;
//..
}file_entry;
file_entry real[128];
int fs_write(char *buffer, int size, int file) {
//every time this function is called buffer have 10 of lenght only
// I want to concat the whole text in my char* in my struct
}
Algo como esto
real[i].buffer += buffer;
¿Cómo puedo hacer esto en C?