From 37a38ee1858358d03f76e4508ed4703fc610d918 Mon Sep 17 00:00:00 2001 From: bdc Date: Tue, 31 Oct 1995 22:06:02 +0000 Subject: [PATCH] *** empty log message *** --- scsh/aix/stdio_dep.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scsh/aix/stdio_dep.c b/scsh/aix/stdio_dep.c index 35951b8..a041ee2 100644 --- a/scsh/aix/stdio_dep.c +++ b/scsh/aix/stdio_dep.c @@ -70,3 +70,16 @@ int fbufcount(FILE* fs) { return(fs->_cnt); } + +/* Returns true if there is no buffered data in stream FS +** (or there is no buffering, period.) +*/ + +int ibuf_empty(FILE *fs) {return fs->_cnt <= 0;} + + +/* Returns true if the buffer in stream FS is full +** (or there is no buffering, period). +*/ + +int obuf_full(FILE *fs) {return fs->_cnt <= 0;}