Я получаю буфер char * длиной 10. Но я хочу объединить все содержимое в моей структуре, которая имеет переменную 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
}
Что-то вроде этого:
real[i].buffer += buffer;
Как я могу сделать это в C?