mktemp(3) not defined in stdio.h?

Andrew DeFaria ADeFaria@Salira.com
Mon Aug 19 10:34:00 GMT 2002


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/



More information about the Cygwin mailing list