xiaoxiang781216 commented on code in PR #8399:
URL: https://github.com/apache/nuttx/pull/8399#discussion_r1093559804
##########
libs/libc/stdio/lib_getdelim.c:
##########
@@ -235,6 +266,7 @@ ssize_t getdelim(FAR char **lineptr, size_t *n, int
delimiter,
#ifdef HAVE_GETLINE
ssize_t getline(FAR char **lineptr, size_t *n, FAR FILE *stream)
{
- return getdelim(lineptr, n, EOLCH, stream);
+ return getdelimx(lineptr, n, EOLCH, stream,
+ stream == stdin ? stdout : NULL);
Review Comment:
how to handle redirect? the echo should be handled by serial driver, I think.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]