
/* tmpnam.c - ryb */

#include <stdio.h>

extern char *
__tmpnam (char *buf, const char *path, const char *prefix, int *counter);
extern char * __get_temp_path (void);

char *
tmpnam (char *s)
{
  static char name[L_tmpnam];
  static int count = 0;

  if (s == NULL)
    s = name;
  return __tmpnam (s, __get_temp_path (), "T", &count);
}
