Lines Matching refs:state
244 StrState *state = (StrState *)handle;
246 if ((state->maxlen != -1) &&
247 (state->cur - state->buf >= state->maxlen)) {
248 state->cur[0] = '\0';
252 state->cur[0] = c;
253 state->cur++;
260 StrState state;
262 state.buf = str;
263 state.cur = str;
264 state.maxlen = -1;
267 ret = kvprintf(fmt, strputc, &state, ap);
270 state.cur[0] = '\0';
279 StrState state;
281 state.buf = str;
282 state.cur = str;
283 state.maxlen = n;
286 ret = kvprintf(fmt, strputc, &state, ap);
289 state.cur[0] = '\0';