Initialize text buffer. */
| 413 | |
| 414 | /* Initialize text buffer. */ |
| 415 | void |
| 416 | init_text_buffer(struct text_buffer *tb) |
| 417 | { |
| 418 | tb->text = (char *) alloc(START_SIZE); |
| 419 | tb->text[0] = '\0'; |
| 420 | tb->text_size = START_SIZE; |
| 421 | tb->text_last = 0; |
| 422 | tb->num_lines = 0; |
| 423 | } |
| 424 | |
| 425 | /* Empty the text buffer */ |
| 426 | void |
no test coverage detected