Searched refs:line_buf (Results 1 – 3 of 3) sorted by relevance
119 char line_buf[256]; in ReadLine() local125 if (fgets(line_buf, sizeof(line_buf), stdin) == NULL) { in ReadLine()132 int len = strlen(line_buf); in ReadLine()134 line_buf[len - 2] == '\\' && in ReadLine()135 line_buf[len - 1] == '\n') { in ReadLine()138 line_buf[len - 2] = '\n'; in ReadLine()139 line_buf[len - 1] = 0; in ReadLine()141 } else if ((len > 0) && (line_buf[len - 1] == '\n')) { in ReadLine()160 memcpy(result + offset, line_buf, len * kCharSize); in ReadLine()
280 char line_buf[MAX_PACKET_LENGTH]; member1592 static int gdb_handle_packet(GDBState *s, const char *line_buf) in gdb_handle_packet() argument1604 printf("command='%s'\n", line_buf); in gdb_handle_packet()1606 p = line_buf; in gdb_handle_packet()2111 } else if (s->line_buf_index >= sizeof(s->line_buf) - 1) { in gdb_read_byte()2114 s->line_buf[s->line_buf_index++] = ch; in gdb_read_byte()2118 s->line_buf[s->line_buf_index] = '\0'; in gdb_read_byte()2126 csum += s->line_buf[i]; in gdb_read_byte()2135 s->state = gdb_handle_packet(s, s->line_buf); in gdb_read_byte()
4586 unsigned char *line_buf = base_buf + scanline * y; in testvbe_func() local4590 unsigned char *buf = line_buf + bpp * x; in testvbe_func()