I have a question on adding strings and data types. What does it mean to use them in such arithmetic? Does body + size
mean that it is creating a new block of memory that includes both of them?
The following is just an excerpt of the code:
char* body;
ssize_t size = load();
char buffer[512];
body = realloc(body, size + octets);
if (body == NULL)
{
return -1;
}
memcpy(body + size, buffer, octets);
size += octets;