Lines Matching defs:size
14 The wrappers ensure that str[size-1] is always \0 upon return.
16 PyOS_snprintf and PyOS_vsnprintf never write more than size bytes
21 When 0 <= rv < size, the output conversion was unexceptional, and
25 When rv >= size, output conversion was truncated, and a buffer of
26 size rv+1 would have been needed to avoid truncation. str[size-1]
29 When rv < 0, "something bad happened". str[size-1] is \0 in this
36 CAUTION: Unlike C99, str != NULL and size > 0 are required.
37 Also, size must be smaller than INT_MAX.
41 PyOS_snprintf(char *str, size_t size, const char *format, ...)
47 rc = PyOS_vsnprintf(str, size, format, va);
53 PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
56 assert(size > 0);
57 assert(size <= (INT_MAX - 1));
64 if (size > INT_MAX - 1) {
70 len = _vsnprintf(str, size, format, va);
72 len = vsnprintf(str, size, format, va);
76 if (size > 0) {
77 str[size-1] = '\0';