| 14 |
* * |
* * |
| 15 |
***************************************************************************/ |
***************************************************************************/ |
| 16 |
|
|
| 17 |
|
#define _POSIX_C_SOURCE 200809L |
| 18 |
|
|
| 19 |
#include "editor.h" |
#include "editor.h" |
| 20 |
#include "bbs.h" |
#include "bbs.h" |
| 21 |
#include "io.h" |
#include "io.h" |
| 26 |
#include <stdlib.h> |
#include <stdlib.h> |
| 27 |
#include <sys/param.h> |
#include <sys/param.h> |
| 28 |
#include <strings.h> |
#include <strings.h> |
|
|
|
|
#define _POSIX_C_SOURCE 200809L |
|
| 29 |
#include <string.h> |
#include <string.h> |
| 30 |
|
|
| 31 |
#define EDITOR_ESC_DISPLAY_STR "\033[32m*\033[m" |
#define EDITOR_ESC_DISPLAY_STR "\033[32m*\033[m" |
| 138 |
p_data_line[current_data_line_length] = '\0'; |
p_data_line[current_data_line_length] = '\0'; |
| 139 |
} |
} |
| 140 |
|
|
| 141 |
bzero(p_editor_data->p_display_lines + p_editor_data->display_line_total, MAX_EDITOR_DATA_LINES - (size_t)p_editor_data->display_line_total); |
memset(p_editor_data->p_display_lines + p_editor_data->display_line_total, 0, MAX_EDITOR_DATA_LINES - (size_t)p_editor_data->display_line_total); |
| 142 |
|
|
| 143 |
return p_editor_data; |
return p_editor_data; |
| 144 |
} |
} |