summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_nulloutstream.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-01 14:24:29 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-01 14:24:29 +0000
commit1429d1f9793ddcfcce42214a19a64042111b784d (patch)
treea93643d35ce4c2dced36b19511b19634f1c9fa0c /nuttx/lib/lib_nulloutstream.c
parent5ba94a97648150ab48ab40d443527706303b9519 (diff)
downloadpx4-nuttx-1429d1f9793ddcfcce42214a19a64042111b784d.tar.gz
px4-nuttx-1429d1f9793ddcfcce42214a19a64042111b784d.tar.bz2
px4-nuttx-1429d1f9793ddcfcce42214a19a64042111b784d.zip
update comments; add lib_zeroinstream
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1842 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_nulloutstream.c')
-rw-r--r--nuttx/lib/lib_nulloutstream.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/nuttx/lib/lib_nulloutstream.c b/nuttx/lib/lib_nulloutstream.c
index f2638fbcf..c3dcfe0f6 100644
--- a/nuttx/lib/lib_nulloutstream.c
+++ b/nuttx/lib/lib_nulloutstream.c
@@ -54,6 +54,22 @@ static void nulloutstream_putc(FAR struct lib_outstream_s *this, int ch)
* Public Functions
****************************************************************************/
+/****************************************************************************
+ * Name: lib_nulloutstream
+ *
+ * Description:
+ * Initializes a NULL streams. The initialized stream will write all data
+ * to the bit-bucket.
+ *
+ * Input parameters:
+ * nulloutstream - User allocated, uninitialized instance of struct
+ * lib_outstream_s to be initialized.
+ *
+ * Returned Value:
+ * None (User allocated instance initialized).
+ *
+ ****************************************************************************/
+
void lib_nulloutstream(FAR struct lib_outstream_s *nulloutstream)
{
nulloutstream->put = nulloutstream_putc;