summaryrefslogtreecommitdiff
path: root/components/libc/getline/posix_getline.h
blob: c7d6021af30fe1f67d9ab5e54761d8727e0f3992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* posix_getline.h
 * RT-Thread POSIX
 * getdelim(), getline() - read a delimited record from stream, ersatz implementation
 * This code is unlicensed -- free and released into the public domain. 
 * https://man7.org/linux/man-pages/man3/getline.3.html
 * Authors:
 *     https://github.com/ivanrad/getline
 *     https://github.com/mysterywolf/getline/
 *
 * Meco Man    2020-09-03    First Version
 */


#ifndef POSIX_GETLINE_H
#define POSIX_GETLINE_H

#include <stdio.h>
#include <sys/types.h>

ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
ssize_t getline(char **lineptr, size_t *n, FILE *stream);

#endif /* POSIX_GETLINE_H */