summaryrefslogtreecommitdiff
path: root/userland/minibox/utilities
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-15 21:12:44 +0100
committerAnton Kling <anton@kling.gg>2023-11-15 21:40:13 +0100
commitc9358cdeac4522922df46fb6e3ab6a517203ec99 (patch)
treea033b4386f1aa825c06d549d3a3bd8f4c0156ddd /userland/minibox/utilities
parent6713b6a6c112f0de92c63e349d100fc4bd89138e (diff)
LibC: Add getdelim and getline
Diffstat (limited to 'userland/minibox/utilities')
-rw-r--r--userland/minibox/utilities/ed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/userland/minibox/utilities/ed.c b/userland/minibox/utilities/ed.c
index 53270dc..bcaba36 100644
--- a/userland/minibox/utilities/ed.c
+++ b/userland/minibox/utilities/ed.c
@@ -12,7 +12,7 @@ FILE *fp = NULL;
FILE *mem_fp = NULL;
int line_number = 1;
-int getline(char *buffer, size_t s) {
+int ed_getline(char *buffer, size_t s) {
(void)s;
int i = 0;
char c;
@@ -86,7 +86,7 @@ void delete_line(void) {
void read_command(void) {
char buffer[4096];
char *s = buffer;
- getline(buffer, 4096);
+ ed_getline(buffer, 4096);
int a = -1;
int rc = sscanf(buffer, "%d", &a);
if (0 < rc) {
@@ -107,7 +107,7 @@ void read_command(void) {
void read_input(void) {
char buffer[4096];
- int l = getline(buffer, 4096);
+ int l = ed_getline(buffer, 4096);
if (0 == strcmp(buffer, ".")) {
mode = COMMAND_MODE;
return;