#include <io_ctx.h> #include <io_ctx_stdio.h> int create_stdio_ctx(ctxp, fp) io_ctx *ctxp; FILE *fp;
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.
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.
Copyright © 1996, 1997, Visa International Service Association and MasterCard International Incorporated
All Rights Reserved.