[BACK]Return to inttoa.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libntp

File: [cvs.NetBSD.org] / src / lib / libntp / Attic / inttoa.c (download)

Revision 1.2, Fri Jan 9 03:16:16 1998 UTC (26 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.1: +2 -0 lines

RCS Id Police.

/*	$NetBSD: inttoa.c,v 1.2 1998/01/09 03:16:16 perry Exp $	*/

/*
 * inttoa - return an asciized signed integer
 */
#include <stdio.h>

#include "lib_strbuf.h"
#include "ntp_stdlib.h"

char *
inttoa(ival)
	long ival;
{
	register char *buf;

	LIB_GETBUF(buf);

	(void) sprintf(buf, "%ld", (long)ival);
	return buf;
}