Mail Archives: djgpp/1999/10/10/14:01:22
On Sun, 10 Oct 1999, Kalum Somaratna wrote:
> The header file wich contain's the definition is stdlib.h as
> documented in the doc's.
>
> #include <stdlib.h>
> void *xmalloc(size_t size);
Please look at stdlib.h, and you will see that the prototype of xmalloc
is commented out there. There's an explanation there about the reasons.
> It is strange that you got the messages. I compiled your program
> and it linked without any problems and I also didn't get any
> undefined reference's.
If you didn't use the -Wall option, the compiler won't warn about
functions with no prototypes.
- Raw text -