repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git]
/
external
/
bsd
/
ntp
/
dist
/
libntp
/
inttoa.c
blob
b0a1fa9b65e3e84cf03dc08be61f32dfd021bb86
1
/* $NetBSD$ */
2
3
/*
4
* inttoa - return an asciized signed integer
5
*/
6
#include <config.h>
7
#include <stdio.h>
8
9
#include
"lib_strbuf.h"
10
#include
"ntp_stdlib.h"
11
12
char
*
13
inttoa
(
14
long
val
15
)
16
{
17
register
char
*
buf
;
18
19
LIB_GETBUF
(
buf
);
20
snprintf
(
buf
,
sizeof
(
buf
),
"%ld"
,
val
);
21
22
return
buf
;
23
}