# 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.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm