I receive a char * buffer which have the lenght of 10. But I want to concat the whole content in my struct which have an 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 } Something like this :
real[i].buffer += buffer; How can I do this in C ?