aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/outputBuffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index b5fddd98d..f6fb38937 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -57,6 +57,11 @@ void flushOutputBuffer(OutputBuffer * cb)
}
}
+int outputBufferEmpty(const OutputBuffer * cb)
+{
+ return cb->begin == cb->end;
+}
+
unsigned availableOutputBuffer(const OutputBuffer * cb)
{
if (cb->end >= cb->begin)