9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: strdup once more, was: Re: [9fans] APE: strdup()
@ 2001-10-15 10:37 forsyth
  2001-10-22  9:26 ` Douglas A. Gwyn
  0 siblings, 1 reply; 4+ messages in thread
From: forsyth @ 2001-10-15 10:37 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 135 bytes --]

strdup is in the bsd.h extensions (along with getopt).
perhaps it wasn't or isn't ANSI; at any rate, that's what APE thinks of it.


[-- Attachment #2: Type: message/rfc822, Size: 1663 bytes --]

To: 9fans@cse.psu.edu
Subject: strdup once more, was: Re: [9fans] APE: strdup()
Date: Mon, 15 Oct 2001 12:01:26 +0200
Message-ID: <cej-1011015120126.A071032@cejchan.gli.cas.cz>


oooops, I made a typo when reporting error;
actually, the declarations were okay, as you advised:


	char *parameterfile = NULL;
	extern char *optarg;
		...

The problem persists. Apologies to all involved!

-pac-

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: strdup once more, was: Re: [9fans] APE: strdup()
  2001-10-15 10:37 strdup once more, was: Re: [9fans] APE: strdup() forsyth
@ 2001-10-22  9:26 ` Douglas A. Gwyn
  0 siblings, 0 replies; 4+ messages in thread
From: Douglas A. Gwyn @ 2001-10-22  9:26 UTC (permalink / raw)
  To: 9fans

forsyth@vitanuova.com wrote:
> strdup is in the bsd.h extensions (along with getopt).
> perhaps it wasn't or isn't ANSI; ...

Yes, or is it no, strdup is not a Standard C function.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: strdup once more, was: Re: [9fans] APE: strdup()
  2001-10-15 10:01 ` strdup once more, was: " pac
@ 2001-10-22  9:25   ` Douglas A. Gwyn
  0 siblings, 0 replies; 4+ messages in thread
From: Douglas A. Gwyn @ 2001-10-22  9:25 UTC (permalink / raw)
  To: 9fans

pac wrote:
> The problem persists.
You need a (correct) declaration of strdup in scope when it is called.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* strdup once more, was: Re: [9fans] APE: strdup()
  2001-10-15  7:47 Boyd Roberts
@ 2001-10-15 10:01 ` pac
  2001-10-22  9:25   ` Douglas A. Gwyn
  0 siblings, 1 reply; 4+ messages in thread
From: pac @ 2001-10-15 10:01 UTC (permalink / raw)
  To: 9fans


oooops, I made a typo when reporting error;
actually, the declarations were okay, as you advised:


	char *parameterfile = NULL;
	extern char *optarg;
		...

The problem persists. Apologies to all involved!

-pac-



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-22  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-15 10:37 strdup once more, was: Re: [9fans] APE: strdup() forsyth
2001-10-22  9:26 ` Douglas A. Gwyn
  -- strict thread matches above, loose matches on Subject: below --
2001-10-15  7:47 Boyd Roberts
2001-10-15 10:01 ` strdup once more, was: " pac
2001-10-22  9:25   ` Douglas A. Gwyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).