Lines Matching refs:sz
43 mandoc_escape(const char **end, const char **start, int *sz) in mandoc_escape() argument
57 if (NULL == sz) in mandoc_escape()
58 sz = &local_sz; in mandoc_escape()
68 *sz = 0; in mandoc_escape()
79 *sz = 2; in mandoc_escape()
148 *sz = 2; in mandoc_escape()
155 *sz = 1; in mandoc_escape()
221 *sz = 1; in mandoc_escape()
227 *sz = *end - *start; in mandoc_escape()
245 *sz = 2; in mandoc_escape()
256 *sz = 1; in mandoc_escape()
269 *sz = 1; in mandoc_escape()
296 *sz = (*end)++ - *start; in mandoc_escape()
298 assert(*sz > 0); in mandoc_escape()
299 if ((size_t)*sz > strlen(*start)) in mandoc_escape()
301 *end += *sz; in mandoc_escape()
308 if (2 == *sz) { in mandoc_escape()
315 (*sz)--; in mandoc_escape()
321 } else if (1 != *sz) in mandoc_escape()
346 if (1 == *sz && 'c' == **start) in mandoc_escape()
400 mandoc_strndup(const char *ptr, size_t sz) in mandoc_strndup() argument
404 p = mandoc_malloc(sz + 1); in mandoc_strndup()
405 memcpy(p, ptr, sz); in mandoc_strndup()
406 p[(int)sz] = '\0'; in mandoc_strndup()
597 mandoc_eos(const char *p, size_t sz, int enclosed) in mandoc_eos() argument
602 if (0 == sz) in mandoc_eos()
612 for (q = p + (int)sz - 1; q >= p; q--) { in mandoc_eos()
644 mandoc_strntoi(const char *p, size_t sz, int base) in mandoc_strntoi() argument
650 if (sz > 31) in mandoc_strntoi()
653 memcpy(buf, p, sz); in mandoc_strntoi()
654 buf[(int)sz] = '\0'; in mandoc_strntoi()