/*
 *	$Source: /afs/sipb.mit.edu/project/sipb-athena/repository/src/kerberos/appl/tftp/tmpnam.c,v $
 *	$Author: ghudson $
 *	$Locker:  $
 *	$Log: tmpnam.c,v $
 *	Revision 1.1  1996/06/02 08:22:31  ghudson
 *	Initial checkin.
 *
 * Revision 1.1.1.2  1991/12/03  18:47:45  eichin
 * Athena Kerberos 4 patch 9
 *
 * Revision 4.2  88/03/16  18:38:48  steiner
 * Removed improper #.
 * Programmer: wesommer.
 * Auditor: jtkohl.
 * 
 * Revision 4.1  87/09/01  16:33:35  steiner
 * No change; starting version 4.
 * 
 * Revision 2.1  85/12/12  10:51:24  bcn
 * Change major version number to 2.
 * 
 * Revision 1.1  85/06/07  21:45:58  martillo
 * Initial revision
 * 
 */

#ifndef lint
static char *rcsid_tmpnam_c = "$Header: /afs/sipb.mit.edu/project/sipb-athena/repository/src/kerberos/appl/tftp/tmpnam.c,v 1.1 1996/06/02 08:22:31 ghudson Exp $";
#endif	lint

/* tmpnam.c */

/*  Copyright 1984 by the Massachusetts Institute of Technology  */
/*  See permission and disclaimer notice in file "notice.h"  */
#include	"notice.h"


/* Generate a unique temporary name.  Stolen from stdio, but changed to
 * generate shorter variable names so extensions can be added.
 */

char *tmpnam(s)
char *s;
{
	static seed;

	sprintf(s, "t%d.%d", getpid(), seed++);
	return(s);
}
