Re: malloc error on pointer
From: Ben Pfaff (blp_at_cs.stanford.edu)
Date: 03/30/05
- Next message: Martin Ambuhl: "Re: malloc error on pointer"
- Previous message: Bill: "secondary video output"
- In reply to: jt: "malloc error on pointer"
- Next in thread: Martin Ambuhl: "Re: malloc error on pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 17:40:38 -0800
"jt" <jtsoft@hotmail.com> writes:
> "tcpserver.c", line 88.10: 1506-068 (W) Operation between types "struct
> sockaddr *" and "int" is not allowed.
> cliaddr=malloc(addrlen); //<---------this is the error
You forgot to #include <stdlib.h>.
-- "Some people *are* arrogant, and others read the FAQ." --Chris Dollin
- Next message: Martin Ambuhl: "Re: malloc error on pointer"
- Previous message: Bill: "secondary video output"
- In reply to: jt: "malloc error on pointer"
- Next in thread: Martin Ambuhl: "Re: malloc error on pointer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]