Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Andrew DeFaria Newsgroups: gmane.os.cygwin Subject: mktemp(3) not defined in stdio.h? Date: Mon, 19 Aug 2002 08:47:18 -0700 Lines: 17 Message-ID: <3D611306.1080105@Salira.com> Reply-To: cygwin AT cygwin DOT com NNTP-Posting-Host: 206.184.204.2 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1029771967 15143 206.184.204.2 (19 Aug 2002 15:46:07 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Mon, 19 Aug 2002 15:46:07 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1 X-Accept-Language: en-us, en I'm trying to call mktemp in my program and having difficulties. The man page says to include however there is no definition for mktemp in stdio.h: $ grep mktemp /usr/include/stdio.h char * _EXFUN(_mktemp_r, (struct _reent *, char *)); However there is on in stdlib.h: $ grep mktemp /usr/include/stdlib.h char * _EXFUN(mktemp,(char *)); Without including stdlib.h I get a compiler warning and including it the warning goes away. Is this just a man page error? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/