public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91adc28
)
Addition of tmpnam system function.
author
carl
<cecodere@yahoo.ca>
Sun, 17 Mar 2019 14:23:18 +0000
(22:23 +0800)
committer
carl
<cecodere@yahoo.ca>
Sun, 17 Mar 2019 14:46:31 +0000
(22:46 +0800)
modules/src/system/tmpnam.c
[new file with mode: 0644]
patch
|
blob
diff --git a/modules/src/system/tmpnam.c
b/modules/src/system/tmpnam.c
new file mode 100644
(file)
index 0000000..
1c58261
--- /dev/null
+++ b/
modules/src/system/tmpnam.c
@@ -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);
+}
+