Updated: October 28, 2024 |
Find the first control that can open a stream to the given file in the given mode
#include <aoi.h> AOIStream_t *AoOpenFilespec(const char *fspec, const char *mode);
This function iterates through all available AOI controls that export an AOStreamer interface and returns a stream object from the first control that can open the specified file in the specified mode. The control field in the returned object references the control, which is held. When you call AoStreamClose() to close the stream, the library releases the control referenced by this field.
A pointer to an AOIStream_t structure representing the successfully opened stream, or NULL if the stream couldn't be opened in the requested mode by any control.
QNX Neutrino