Home | History | Annotate | Download | only in stdio

Lines Matching defs:BUF

68 #define	BUF		513	/* Maximum length of numeric string. */
162 wchar_t buf[BUF]; /* buffer for numeric conversions */
575 if (width == 0 || width > sizeof(buf) /
576 sizeof(*buf) - 1)
577 width = sizeof(buf) / sizeof(*buf) - 1;
579 for (p = buf; width; width--) {
651 buf + 1 + !!(flags & HAVESIGN)) {
679 if (p > buf)
693 res = wcstoimax_l(buf, NULL, base, loc);
695 res = wcstoumax_l(buf, NULL, base, loc);
717 _DIAGASSERT(__type_fit(int, p - buf));
718 nread += (int)(p - buf);
725 if (width == 0 || width > sizeof(buf) /
726 sizeof(*buf) - 1)
727 width = sizeof(buf) / sizeof(*buf) - 1;
728 if ((width = parsefloat(fp, buf, buf + width, loc)) == 0)
732 long double res = wcstold_l(buf, &p,
737 double res = wcstod_l(buf, &p, loc);
740 float res = wcstof_l(buf, &p, loc);
744 if (p - buf != (ptrdiff_t)width)
763 parsefloat(FILE *fp, wchar_t *buf, wchar_t *end, locale_t loc)
784 commit = buf - 1;
786 for (p = buf; p < end; ) {
913 _DIAGASSERT(__type_fit(int, commit - buf));
914 return (int)(commit - buf);