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:
Stuart Ianna
2023-05-01 11:19:37 +10:00
committed by Petro Karashchenko
parent a9fc76c848
commit 4e2a8d4492
3 changed files with 66 additions and 1 deletions
+1
View File
@@ -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);