/*
 *  hap -- a mail notification program
 * 
 *  copyright 1995 by Eric Fischer, etaoin@uchicago.edu
 * 
 *  copies of hap may be redistributed under the terms of the
 *  GNU public license, copies of which are available from
 *  the Free Software Foundation, 59 Temple Place, Boston, MA
 *  02111 USA.
 *
 */

#include "hap.h"

/*************************************************************************

   NUMBER -> STRING CONVERSION STUFF

*************************************************************************/

/* return a pointer to a string containing the integer n.  overwritten
   with each call.
*/

char *
itoa (n)
	int n;
{
	static char s[12];

	sprintf (s, "%4d", n);
	return s; 
}

/* return a pointerto a string containing the real number n.  overwritten
   with each call.
*/

char *
ftoa (n)
	double n;
{
	static char s[12];

	sprintf (s, "%.1f", n);
	return s;
}

