[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Re: Implicition declarations of functions and bugs



On 12-Mar-06, 04:22 (CST), Bastian Blank <waldi@debian.org> wrote: 
> On Sat, Mar 11, 2006 at 01:43:34AM +0100, Samuel Thibault wrote:
> > This is a warning and not an error, because using one's own strdup()
> > function (that would take ints) is perfectly legal.
> 
> No, it is not. At least not with a compiler in hosted mode. In this
> mode, the compiler is allowed to have any knowledge about the standard
> library builtin. 

Not if the relevant header hasn't been included. No "#include
<string.h>", no compiler messing with "strdup()."

Steve

-- 
Steve Greenland
    The irony is that Bill Gates claims to be making a stable operating
    system and Linus Torvalds claims to be trying to take over the
    world.       -- seen on the net



Reply to: