mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
libc: Add setbuffer to stdio.
The setbuffer() function is a wrapper around setvbuf() which enables full buffering on a buffer allocated by the caller, assuming buffer is not a null pointer.
This commit is contained in:
committed by
Petro Karashchenko
parent
a9fc76c848
commit
4e2a8d4492
@@ -171,6 +171,7 @@ void rewind(FAR FILE *stream);
|
||||
|
||||
void setbuf(FAR FILE *stream, FAR char *buf);
|
||||
int setvbuf(FAR FILE *stream, FAR char *buffer, int mode, size_t size);
|
||||
void setbuffer(FAR FILE *stream, FAR char *buf, size_t size);
|
||||
|
||||
int ungetc(int c, FAR FILE *stream);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user