Home
last modified time | relevance | path

Searched refs:srcbufsz (Results 1 – 1 of 1) sorted by relevance

/titanic_41/usr/src/cmd/ptools/pargs/
H A Dpargs.c213 size_t srcbufsz = strlen(src) + 1; in unctrl_str() local
214 size_t destbufsz = srcbufsz * 4; in unctrl_str()
217 wide_srcp = wide_src = safe_zalloc(srcbufsz * sizeof (wchar_t)); in unctrl_str()
220 if ((srclen = mbstowcs(wide_src, src, srcbufsz - 1)) == (size_t)-1) { in unctrl_str()
235 if (srclen == (srcbufsz - 1)) { in unctrl_str()
397 size_t srcbufsz = strlen(src) + 1; in quote_string() local
407 wide_srcp = wide_src = safe_zalloc(srcbufsz * sizeof (wchar_t)); in quote_string()
409 if ((srclen = mbstowcs(wide_src, src, srcbufsz - 1)) == (size_t)-1) { in quote_string()
414 if (srclen == srcbufsz - 1) in quote_string()
433 destbufsz = srcbufsz + 3 + 4 * quote_count; in quote_string()