It must exist for us GNU C folks, but it seems to be returning a
different type than on other systems.  I receive a warning about:
assignment makes pointer from integer without a cast.  It seems to
exist, but like you said, it doesn't have a prototype for it.

So, how do I setup a prototype?  I'm definitely not a 'C' guru, not even
a beginner really.

Kevin Newman

> -----Original Message-----
> From: Gavin Scott [SMTP:[log in to unmask]]
> Sent: Monday, January 25, 1999 3:27 PM
> To:   [log in to unmask]
> Cc:   [log in to unmask]
> Subject:      [HP3000-L] GNU C, strdup
>
> > Does anyone know what the function strdup returns on the HP?
>
> I have the feeling that strdup doesn't exist on MPE/iX.  I haven't
> looked into it beyond determining that there is no prototype for it
> in string[s].h, and just went ahead and replaced it with:
>
>    strcpy(malloc(strlen(mystr) + 1), mystr)
>
> I was using C/iX rather than gcc I believe.
>
> G.