PageRenderTime 23ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/contrib/ntp/include/ntp_sprintf.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 13 lines | 9 code | 1 blank | 3 comment | 0 complexity | d7213980b72ca5a75e599f8c38dde326 MD5 | raw file
 1/*
 2 * Handle ancient char* *s*printf*() systems
 3 */
 4
 5#ifdef SPRINTF_CHAR
 6# define SPRINTF(x)	strlen(sprintf/**/x)
 7# define SNPRINTF(x)	strlen(snprintf/**/x)
 8# define VSNPRINTF(x)	strlen(vsnprintf/**/x)
 9#else
10# define SPRINTF(x)	((size_t)sprintf x)
11# define SNPRINTF(x)	((size_t)snprintf x)
12# define VSNPRINTF(x)	((size_t)vsnprintf x)
13#endif