Open()

Updated: April 19, 2023

Synopsis:

#include <aoi.h>

AOIStream_t* (*Open)(const char *name,
                     const char *mode);

Arguments:

name
The name of the stream you want to open.
mode
The mode you want to open the stream in. The mode string should match modes for fopen(), such as:
rb
Read binary
wb
Write binary

Description:

This function should open the name stream in the mode access mode.

Returns:

A pointer to an AOIStream_t instance on success, or NULL if the function couldn't open the stream in the given access mode.