From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] strdup() From: "rob pike, esq." MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 9 Apr 2002 09:56:03 -0400 Topicbox-Message-UUID: 749b9708-eaca-11e9-9e20-41e7f4b1d025 > in the APE environment, strdup is in bsd.h (/sys/include/ape/bsd.h) as an extension. > the manual pages describe the library for the Plan 9 native environment. > options.nucl = strdup(optarg) ; > strdup isn't declared and gets the default type of int, following C's B compatibility rules. Yes. For reasons I can't fathom, strdup is not in the ANSI C definition. I hope C9X fixes this oversight. -rob