Lines Matching defs:snprintf
1 /* $NetBSD: snprintf.c,v 1.6 2007/07/22 05:19:02 lukem Exp $ */
17 * snprintf() is used instead of sprintf() as it does limit checks
38 * gcc -DTEST_SNPRINTF -o snprintf snprintf.c -lm
39 * and run snprintf for results.
46 * The original code assumed that both snprintf() and vsnprintf() were
47 * missing. Some systems only have snprintf() but not vsnprintf(), so
681 snprintf(char *str, size_t count, const char *fmt, ...)
750 printf("Testing snprintf format codes against system sprintf...\n");
755 snprintf(buf1, sizeof(buf1), fp_fmt[x], fp_nums[y]);
758 printf("snprintf doesn't match Format: %s\n",
771 len = snprintf(buf1, sizeof(buf1), int_fmt[x], int_nums[y]);
775 printf("snprintf doesn't match Format: %s\n",