Having a casting error with this function strcat()
// split the block
for (i=0; block_size <= first_buddy_size/2; ++i) {
first_buddy_size/=2;
response[i] = strcat("F", itoa(first_buddy_size, buff, 10));
}
response[i] = strcat("A", itoa(block_size, buff, 10));
error I am getting
buddy.c: In function `process_request':
buddy.c:49: warning: passing arg 2 of `strcat' makes pointer from integer without a cast
buddy.c:51: warning: passing arg 2 of `strcat' makes pointer from integer without a cast
my declartions
block buddy_block[BUDDY_SIZE];
char* response[BUDDY_SIZE] = {0};
first_buddy_size = buddy_block[0].data;