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 help 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 help, 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
.



Relevant Pages

  • what does for _ in range() mean?
    ... I saw this code snippet: ... optimization to be had using it? ... I know that in the interpreter _ means the ... inside source code? ...
    (comp.lang.python)
  • Re: Ada performance (was No call for Ada )
    ... You published the results but not the source code that has ben used. ... MSG wrote: ... GNAT, an Ada compiler, is a front end to GCC and so should use the ... > FORTRAN, which may be beneficial in terms of performance (given that ...
    (comp.lang.ada)