]> pd.if.org Git - pdclib/blobdiff - functions/stdio/tmpnam.c
Re-import from Subversion.
[pdclib] / functions / stdio / tmpnam.c
index fe3a75d9f5f54de3d61861f0e1c1a02c206e05e5..69edae79bb0cfd9853ac3910771b38874d736efc 100644 (file)
@@ -1,8 +1,22 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
+/* ----------------------------------------------------------------------------
+ * $Id$
+ * ----------------------------------------------------------------------------
+ * Public Domain C Library - http://pdclib.sourceforge.net
+ * This code is Public Domain. Use, modify, and redistribute at will.
+ * --------------------------------------------------------------------------*/
 
 char * tmpnam( char * s ) { /* TODO */ };
+
+/* PDPC code - unreviewed
+{
+    static char buf[] = "ZZZZZZZA.$$$";
+
+    buf[7]++;
+    if (s == NULL)
+    {
+        return (buf);
+    }
+    strcpy(s, buf);
+    return (s);
+}
+*/