diff options
author | Anton Kling <anton@kling.gg> | 2023-11-15 21:12:44 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-15 21:40:13 +0100 |
commit | c9358cdeac4522922df46fb6e3ab6a517203ec99 (patch) | |
tree | a033b4386f1aa825c06d549d3a3bd8f4c0156ddd /userland/libc/stdio/getline.c | |
parent | 6713b6a6c112f0de92c63e349d100fc4bd89138e (diff) |
LibC: Add getdelim and getline
Diffstat (limited to 'userland/libc/stdio/getline.c')
-rw-r--r-- | userland/libc/stdio/getline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/userland/libc/stdio/getline.c b/userland/libc/stdio/getline.c new file mode 100644 index 0000000..5e9671e --- /dev/null +++ b/userland/libc/stdio/getline.c @@ -0,0 +1,5 @@ +#include <stdio.h> + +size_t getline(char **lineptr, size_t *n, FILE *stream) { + return getdelim(lineptr, n, '\n', stream); +} |