Home | History | Annotate | Download | only in stdio

Lines Matching defs:BUF

73 #define	BUF		513	/* Maximum length of numeric string. */
173 char buf[BUF]; /* buffer for numeric and mb conversions */
406 buf[n++] = *fp->_p;
410 nconv = mbrtowc_l(wcp, buf, n, &mbs,
489 buf[n++] = *fp->_p;
493 nconv = mbrtowc_l(wcp, buf, n, &mbs,
506 (void)ungetc(buf[n],
591 buf[n++] = *fp->_p;
595 nconv = mbrtowc_l(wcp, buf, n, &mbs,
607 (void)ungetc(buf[n],
660 if (width == 0 || width > sizeof(buf) - 1)
661 width = sizeof(buf) - 1;
664 if (--width > sizeof(buf) - 2)
665 width = sizeof(buf) - 2;
669 for (p = buf; width; width--) {
741 buf + 1 + !!(flags & HAVESIGN)) {
771 if (p > buf)
785 res = strtoimax_l(buf, (char **)NULL, base,
788 res = strtoumax_l(buf, (char **)NULL, base,
812 nread += p - buf;
819 if (width == 0 || width > sizeof(buf) - 1)
820 width = sizeof(buf) - 1;
821 if ((width = parsefloat(fp, buf, buf + width, loc)) == 0)
825 long double res = strtold_l(buf, &p,
829 double res = strtod_l(buf, &p, loc);
832 float res = strtof_l(buf, &p, loc);
835 if (__scanfdebug && (size_t)(p - buf) != width)
961 parsefloat(FILE *fp, char *buf, char *end, locale_t loc)
982 commit = buf - 1;
983 for (p = buf; p < end; ) {
1108 return commit - buf;