mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-14 00:24:03 -04:00
24 lines
339 B
C
24 lines
339 B
C
/* $NetBSD: inttoa.c,v 1.1.1.2 2012/01/31 21:24:09 kardel Exp $ */
|
|
|
|
/*
|
|
* inttoa - return an asciized signed integer
|
|
*/
|
|
#include <config.h>
|
|
#include <stdio.h>
|
|
|
|
#include "lib_strbuf.h"
|
|
#include "ntp_stdlib.h"
|
|
|
|
char *
|
|
inttoa(
|
|
long val
|
|
)
|
|
{
|
|
register char *buf;
|
|
|
|
LIB_GETBUF(buf);
|
|
snprintf(buf, LIB_BUFLENGTH, "%ld", val);
|
|
|
|
return buf;
|
|
}
|