| 1684:89a07d18f86c | 1685:0344372c7115 |
|---|---|
| 104 cxmutstr str, | 104 cxmutstr str, |
| 105 size_t count, | 105 size_t count, |
| 106 ... | 106 ... |
| 107 ) { | 107 ) { |
| 108 if (count == 0) { | 108 if (count == 0) { |
| 109 return cx_strdup_a(alloc, str); | 109 if (cxReallocate(alloc, &str.ptr, str.length + 1)) { |
| 110 return CX_NULLSTR; // LCOV_EXCL_LINE | |
| 111 } | |
| 112 str.ptr[str.length] = '\0'; | |
| 113 return str; | |
| 110 } | 114 } |
| 111 va_list ap; | 115 va_list ap; |
| 112 va_start(ap, count); | 116 va_start(ap, count); |
| 113 va_list ap2; | 117 va_list ap2; |
| 114 va_copy(ap2, ap); | 118 va_copy(ap2, ap); |