Searched refs:convert_bufsize (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/cmd/sort/common/
H A Dutility.c555 static size_t convert_bufsize = 1024; local
562 convert_buffer = safe_realloc(NULL, convert_bufsize);
569 req_bufsize = wcstombs(NULL, ptr, convert_bufsize);
570 if (req_bufsize > convert_bufsize) {
571 convert_bufsize = req_bufsize + 1;
572 convert_buffer = safe_realloc(convert_buffer, convert_bufsize);
575 (void) wcstombs(convert_buffer, ptr, convert_bufsize);

Completed in 58 milliseconds