delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/19/11:47:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <ADeFaria AT Salira DOT com>
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
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 <stdio.h> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019