Lines Matching refs:cursor
56 if (cursor >= size) { return; }
57 if (cursor < 0) { return; }
58 char c = buffer[cursor];
62 cursor++;
63 if (cursor > size)
69 c = buffer[cursor];
96 if (len > size - cursor)
104 if (str[i] != buffer[cursor + i])
109 cursor += len;
125 outInt = strtoll(&buffer[cursor], &end, 0);
126 if (end == &buffer[cursor])
130 cursor = end - buffer;
142 cursor += 2;
151 start = cursor;
185 } while (start != cursor);
194 int line_end = cursor;
195 for (int i=cursor ; i>0 ; --i)
206 for (int i=cursor+1 ; i<size ; ++i)
217 for (int i=0 ; i<(cursor-line_start) ; ++i)
228 fprintf(stderr, "Current cursor: %d\n", cursor);
229 fwrite(&buffer[cursor], size-cursor, 1, stderr);