NAME
io_ctx_stdio - io_ctx for stdio
SYNOPSIS
#include <io_ctx.h>
#include <io_ctx_stdio.h>

int create_stdio_ctx(ctxp, fp)
    io_ctx    *ctxp;
    FILE      *fp;
DESCRIPTION
io_ctx_stdio maps the io_ctx abstraction onto the stdio package.

It is necessary to call fopen() on the file handle before passing it in to create_stdio_ctx().

See io_ctx for information on using the io_ctx absraction for I/O.

RETURN VALUES
On success, create_stdio_ctx() returns NO_ERROR. On failure, it returns IO_CTX_ERR_BAD_PARAMETER or IO_CTX_ERR_MEMORY.

See Return Values for descriptions of individual error codes. For documentation on displaying or logging return values, see error_ctx.

SEE ALSO
io_ctx, io_ctx_memio,
BUGS
This document describes a beta implementation. The information contained in this document may be incomplete and is subject to change.

Copyright © 1996, 1997, Visa International Service Association and MasterCard International Incorporated
All Rights Reserved.