I get this error when i run the following code , on line 21
Error
error invalid conversion from int to const char* [fpermissive]
Code
receive(struct sockaddr_in sockad, struct message m){
int rc;
int i;
int ibuf;
i = sizeof(sockad);
rc = recvfrom(sd,&m,strlen(ibuf),0,(struct sockaddr *)&sockad,(unsigned long)&i ); /* line 21*/
if (rc < 0) {
perror("recvfrom"); exit(1);
}
}
I tried the solutions that in stackoverflow but no luck