Lines Matching refs:cx
253 struct sprintf_ctx *cx = data;
256 if (cx->length > cx->alloc)
258 else if (cx->length + length > cx->alloc)
259 length = cx->alloc - cx->length;
262 memcpy (cx->data + cx->length, piece, length);
265 cx->length += length;
274 struct sprintf_ctx cx;
281 cx.data = str;
282 cx.length = 0;
283 cx.alloc = len;
295 cx.data[0] = '\0';
297 ret = safe_format_string_cb (snprintf_copy_fn, &cx, format, args, num_args);
301 cx.data[MIN (cx.length, len - 1)] = '\0';