feat: reformatted code
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
|
||||
#define RESULT_SIZE 256
|
||||
|
||||
const char* default_msg = "> ";
|
||||
const char *default_msg = "> ";
|
||||
|
||||
char* readline(const char *prompt) {
|
||||
char *readline(const char *prompt) {
|
||||
kprint(prompt == NULL ? default_msg : prompt);
|
||||
|
||||
char* result = malloc(RESULT_SIZE);
|
||||
char *result = malloc(RESULT_SIZE);
|
||||
memset(result, 0, RESULT_SIZE);
|
||||
for (int i = 0; i < RESULT_SIZE - 1; ++i) {
|
||||
result[i] = getc();
|
||||
|
||||
Reference in New Issue
Block a user