Addition of tmpnam system function.
authorcarl <cecodere@yahoo.ca>
Sun, 17 Mar 2019 14:23:18 +0000 (22:23 +0800)
committercarl <cecodere@yahoo.ca>
Sun, 17 Mar 2019 14:46:31 +0000 (22:46 +0800)
modules/src/system/tmpnam.c [new file with mode: 0644]

diff --git a/modules/src/system/tmpnam.c b/modules/src/system/tmpnam.c
new file mode 100644 (file)
index 0000000..1c58261
--- /dev/null
@@ -0,0 +1,16 @@
+/*  Copyright (c) 2019. See the file License in
+ *  the root directory for more information.
+ *
+ *  Created on: 2019-03-13
+ *  
+ */
+#include <stdio.h>
+
+/* This has been placed here, because on some famous platforms, this
+ * call is completely broken (e.g Windows up to recent versions of CRT)
+ */
+char* sys_tmpnam(char *buffer)
+{
+       return tmpnam(buffer);
+}
+