Do you want sample code in raw socket or You want some other solution to solve your problem? Actually, I worked in raw sockets I too know the...
you can try the raw socket in c. In C socket function SOCK_RAW macro is available. see man 2 socket.
Normally this error will come when we are combining more than one files. So it is your library file problem. when it is try to include in your...
I think you completely misunderstood me. free(p) will free the 12 bytes that were allocated by malloc(12) I also said that it is false. It will...
can you tell me which is not true. I am coming to say pointer is like an array. If you free one location it is not mean that other locations also...
I think this code will solve your problems, I did some of the modification in the program. #include <stdio.h> #include <string.h>...
int *p=(int *)malloc(12); free(p); Your question is whether calling free function with argument p will clear the remaining elements. It won't...
Separate names with a comma.