NetBSD/dist/ntp/include/ntp_sprintf.h
drochner d5e6f1b80b resolve conflicts
(in this case, throw away all local modifications; I'll start patching
from scratch)
2003-12-04 16:23:34 +00:00

16 lines
412 B
C

/* $NetBSD: ntp_sprintf.h,v 1.2 2003/12/04 16:23:36 drochner Exp $ */
/*
* Handle ancient char* *s*printf*() systems
*/
#ifdef SPRINTF_CHAR
# define SPRINTF(x) strlen(sprintf/**/x)
# define SNPRINTF(x) strlen(snprintf/**/x)
# define VSNPRINTF(x) strlen(vsnprintf/**/x)
#else
# define SPRINTF(x) ((size_t)sprintf x)
# define SNPRINTF(x) ((size_t)snprintf x)
# define VSNPRINTF(x) ((size_t)vsnprintf x)
#endif