Lines Matching refs:idx
18 int idx = 0; in xmalloc_fgets_internal() local
25 if (idx == 0) in xmalloc_fgets_internal()
30 if (idx >= linebufsz) { in xmalloc_fgets_internal()
33 if (idx >= maxsz) { in xmalloc_fgets_internal()
34 linebuf[idx] = ch; in xmalloc_fgets_internal()
35 idx++; in xmalloc_fgets_internal()
40 linebuf[idx] = ch; in xmalloc_fgets_internal()
41 idx++; in xmalloc_fgets_internal()
44 end_string_offset = idx - term_length; in xmalloc_fgets_internal()
49 idx -= term_length; in xmalloc_fgets_internal()
54 linebuf = xrealloc(linebuf, idx + 1); in xmalloc_fgets_internal()
55 linebuf[idx] = '\0'; in xmalloc_fgets_internal()
57 *maxsz_p = idx; in xmalloc_fgets_internal()