Lines Matching refs:to

187 s_append(string *to, char *from)  in s_append()  argument
189 if (to == NULL) in s_append()
190 to = s_new(); in s_append()
192 return (to); in s_append()
194 s_putc(to, (int)(unsigned int)*from); in s_append()
195 s_terminate(to); in s_append()
196 return (to); in s_append()
212 s_seq_read(FILE *fp, string *to, int lineortoken) in s_seq_read() argument
225 if (to != NULL) in s_seq_read()
226 s_terminate(to); in s_seq_read()
245 if (to == NULL) in s_seq_read()
246 to = s_new(); in s_seq_read()
254 s_putc(to, (int)(unsigned int)'\\'); in s_seq_read()
255 s_putc(to, c); in s_seq_read()
262 s_terminate(to); in s_seq_read()
263 return (to); in s_seq_read()
267 s_terminate(to); in s_seq_read()
268 return (to); in s_seq_read()
272 s_putc(to, c); in s_seq_read()
285 string *to = s_new(); in s_tok() local
287 s_putc(to, (int)(unsigned int)*from->ptr); in s_tok()
290 s_terminate(to); in s_tok()
291 s_restart(to); in s_tok()
294 return (to); in s_tok()
298 string *to = s_clone(from); in s_tok() local
301 return (to); in s_tok()
315 s_read_line(FILE *fp, string *to) in s_read_line() argument
320 s_terminate(to); in s_read_line()
331 s_terminate(to); in s_read_line()
332 return (to->ptr - len); in s_read_line()
334 s_putc(to, (int)(unsigned int)'\n'); in s_read_line()
335 s_terminate(to); in s_read_line()
336 return (to->ptr - len); in s_read_line()
338 s_putc(to, c); in s_read_line()
349 s_read_to_eof(FILE *fp, string *to) in s_read_to_eof() argument
354 s_terminate(to); in s_read_to_eof()
360 have = to->end - to->ptr; in s_read_to_eof()
362 s_simplegrow(to, (size_t)4096); in s_read_to_eof()
365 have = to->end - to->ptr; in s_read_to_eof()
366 got = fread(to->ptr, (size_t)1, have, fp); in s_read_to_eof()
370 to->ptr += got; in s_read_to_eof()
374 s_terminate(to); in s_read_to_eof()
375 return (to->ptr - to->base); in s_read_to_eof()
386 s_parse(string *from, string *to) in s_parse() argument
392 if (to == NULL) in s_parse()
393 to = s_new(); in s_parse()
397 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()
403 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()
408 s_putc(to, (int)(unsigned int)*from->ptr); in s_parse()
410 s_terminate(to); in s_parse()
412 return (to); in s_parse()