Re: sendto(msg) points to uninitialised byte(s)
BlueJ wrote:
> My program is to send data using socket.. but I got the error message:
> "sendto(msg) points to uninitialised byte(s) " This is my source code
BlueJ,
I wanted to you, but could not find a single instance of msg in
your code snippet, let alone sendto(msg).
> 1. key_list = emalloc(BUFSIZE - sizeof(Key) - sizeof(byte) -
> sizeof(int));
> bzero(key_list, sizeof(*key_list));
<snip>
What's emalloc and bzero? What's key_list, Key, byte? Your code snippet
is incomplete at best. If you want , copy and paste a reduced source
that exhibits your problem but is still compilable, or at least contains
enough information for a human reader to understand.
Peter
|