HP3000-L Archives

January 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Newman, Kevin:" <[log in to unmask]>
Reply To:
Newman, Kevin:
Date:
Mon, 25 Jan 1999 18:51:01 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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.

ATOM RSS1 RSS2