Lines Matching refs:bufptr
92 retp = put_wide(iop, &bufptr, bufferend, p, n, sflag); \
101 retp = pad_wide(iop, &bufptr, bufferend, s, n, sflag); \
132 if (snflag || bufptr > bufferend ||\
133 (unsigned long)(bufferend - bufptr) < (n)) {\
134 if (!_dowrite(p, n, iop, &bufptr)) {\
138 unsigned char *fbp = bufptr;\
145 bufptr += 4;\
151 bufptr += 3;\
156 bufptr += 2;\
159 *bufptr++ = *p;\
162 bufptr = (unsigned char *)memcpy(fbp, p, n)\
170 if (!_dowrite(s, PAD_LEN, iop, &bufptr)) \
300 put_wide(FILE *iop, unsigned char **bufptr, in put_wide() argument
310 len = (wchar_t *)bufferend - (wchar_t *)*bufptr; in put_wide()
312 (void) wmemcpy((wchar_t *)*bufptr, p, len); in put_wide()
316 (void) wmemcpy((wchar_t *)*bufptr, p, n); in put_wide()
317 *bufptr = (unsigned char *)((wchar_t *)*bufptr + n); in put_wide()
343 newbufptr = *bufptr + len; in put_wide()
345 if (!_dowrite(tmpp, len, iop, bufptr)) { in put_wide()
350 (void) memcpy(*bufptr, tmpp, len); in put_wide()
351 *bufptr = newbufptr; in put_wide()
359 pad_wide(FILE *iop, unsigned char **bufptr, in pad_wide() argument
371 len = (wchar_t *)bufferend - (wchar_t *)*bufptr; in pad_wide()
373 (void) wmemset((wchar_t *)*bufptr, ps, len); in pad_wide()
377 (void) wmemset((wchar_t *)*bufptr, ps, n); in pad_wide()
378 *bufptr = (unsigned char *)((wchar_t *)*bufptr + n); in pad_wide()
383 if (!_dowrite(s, PAD_LEN, iop, bufptr)) in pad_wide()
386 newbufptr = *bufptr + nn; in pad_wide()
388 if (!_dowrite(s, nn, iop, bufptr)) in pad_wide()
391 (void) memcpy(*bufptr, s, nn); in pad_wide()
392 *bufptr = newbufptr; in pad_wide()
436 unsigned char *bufptr; in _wndoprnt() local
611 bufptr = iop->_ptr; in _wndoprnt()
621 bufptr = iop->_ptr; in _wndoprnt()
631 (unsigned char *)((long)bufptr | (-1L & ~HIBITL)); in _wndoprnt()
677 ssize_t nn = bufptr - iop->_ptr; in _wndoprnt()
681 iop->_ptr = bufptr; in _wndoprnt()
687 iop->_ptr = bufptr; in _wndoprnt()
689 if ((bufptr + iop->_cnt) > bufferend && !(iop->_flag \ in _wndoprnt()
694 memchr((char *)(bufptr+iop->_cnt), \ in _wndoprnt()
2611 wchar_t *bufptr = buf; in insert_thousands_sep() local
2615 char *bufptr = buf; in insert_thousands_sep() local
2632 *bufptr++ = *(bp + buf_index); in insert_thousands_sep()
2636 *bufptr++ = *(bp + buf_index); in insert_thousands_sep()
2640 *bufptr++ = (wchar_t)thousep; in insert_thousands_sep()
2642 *bufptr++ = thousep; in insert_thousands_sep()
2653 --bufptr; in insert_thousands_sep()
2654 while (buf <= bufptr) in insert_thousands_sep()
2655 *obp++ = *bufptr--; in insert_thousands_sep()