This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mktemp(3) not defined in stdio.h?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]