# fpOpenStream()

This function opens a stream for filtering.

## Syntax

    void * pascal fpOpenStream(
        void             *pContext,
        KVInputStream    *pInput );

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().
`pInput` | A pointer to the developer-assigned instance of KVInputStream. The structure `KVInputStream` defines the input stream that contains the source.

## Returns

- If the call is successful, the return value is a `void *` pointer passed to fpFilterStream(), fpCanFilterStream(), and fpCloseStream().
- If the call is unsuccessful, the return value is `NULL`.

## Discussion

- Before you call this function, you must create an input stream either by using the fpFileToInputStreamCreate() function, or by using code similar to the coding example in the Filter sample program. See Use the C-Language Implementation of the API for more information.
- After filtering is complete, call fpCloseStream() to free the memory allocated by this function.

_FT_HTML5_bannerTitle.htm