2b45e011ca
When the series of commits is complete, things like https://cert.litnet.lt/en/docs/ntp-distributed-reflection-dos-attacks should be fixed. PR: bin/148836 (except that we import a newer version) Asked by: Too many MFC after: 2 weeks
22 lines
271 B
C
22 lines
271 B
C
/*
|
|
* 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;
|
|
}
|