Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / ntp_sprintf.h
blob2715a7a51a72bcec6ff8d4fe39ef6cbfc6b1ec4b
1 /* $NetBSD$ */
3 /*
4 * Handle ancient char* *s*printf*() systems
5 */
7 #ifdef SPRINTF_CHAR
8 # define SPRINTF(x) strlen(sprintf/**/x)
9 # define SNPRINTF(x) strlen(snprintf/**/x)
10 # define VSNPRINTF(x) strlen(vsnprintf/**/x)
11 #else
12 # define SPRINTF(x) ((size_t)sprintf x)
13 # define SNPRINTF(x) ((size_t)snprintf x)
14 # define VSNPRINTF(x) ((size_t)vsnprintf x)
15 #endif