Thanks!

reviewed, tested (osx/linux) and commited :) will test on windows when i get some spare time..which is not easy for me these days ..

On 03/16/11 20:55, Glyn Kennington wrote:
pancake wrote:
we need in libr/util/file.c a function named "r_file_mktemp". that
should work on osx, w32 and other *nixes... theorically this is
POSIX, but we all know how Windows follows the standards..so this
needs to be wrapped.
Here it is.  Calling convention is

   int r_file_mkstemp ( const char * prefix, char **oname )

so that the output string name is passed back in oname.  This means that
the caller doesn't need to know in advance how long the string must be
(the temp directory can be a few deep in w32), but does need to free()
it again afterwards.

Glyn


_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

Reply via email to