feat: reformatted code

This commit is contained in:
2021-02-10 18:56:47 +01:00
parent 2b295db30a
commit 90ef4522ca
16 changed files with 47 additions and 38 deletions

View File

@@ -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();