File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / include / ntp_sprintf.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 5 months ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

    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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>