CO_STREAM_EOS


 int co_stream_eos(co_stream stream); 

Header File

co.h

Description

This function checks if a stream is at an end-of-stream condition. This function must be called from within a process run function.

Arguments

The argument for co_stream_eos is as follows:

co_stream stream

A pointer to a stream as passed on the process argument list.


Return Value

Returns an integer value: 0 if no end-of-stream is detected, and 1 if there is an end-of-stream.

Notes

When co_stream_eos returns 1 (true), subsequent calls to co_stream_eos continue to return 1 until the reader closes the stream.



    Practical FPGA Programming in C
    Practical FPGA Programming in C
    ISBN: 0131543180
    EAN: 2147483647
    Year: 2005
    Pages: 208

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net