Afficher un message
Vieux 19/10/2007, 02h55   #4
Jack Klein
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sendto(msg) points to uninitialised byte(s)

On Thu, 18 Oct 2007 03:06:53 -0700, BlueJ <pengbin@gmail.com> wrote in
comp.lang.c:

> 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
>
> 1. key_list = emalloc(BUFSIZE - sizeof(Key) - sizeof(byte) -


There is no emalloc() function in C.

> sizeof(int));
> bzero(key_list, sizeof(*key_list));


There is no bzero() function in C, and IIRC it's been deprecated in
*nix for a long time.

In any case, your question seems to be about non-standard, platform
specific network APIs, and they are off-topic here. I suggest you
post to a group for your platform.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
  Réponse avec citation
 
Page generated in 0,04610 seconds with 9 queries