I always get either malloc() error. Here is the code:
char *data = malloc(200); add_data(data, tableO, line); void add_data(char *data, struct ARP_entryO *tableO, int line) { int i=0; while (i < line) { strcat(data, tableO[i].IPaddr); strcat(data, " "); strcat(data, tableO[i].MACaddr); strcat(data, " "); i++; } } I usualy send about 50-60bytes. Any help with this issue?
Thanks
char data[200];