Next: , Previous: , Up: File Library Functions   [Index]


7.12.3.9 x1f4_ifit_lxfile

extern int x1f4_ifit_lxfile
    (void *lxfile, void *file, void *data, void *text,
     const struct x1f4_sffile_type *sffile);

The x1f4_ifit_lxfile function refits the file object for reading, with data and text operating contexts and sffile operating methods. lxfile is expected the file library object for which the file object was created.

See struct x1f4_sffile_type.

The sffile operating methods will have their first argument of the struct x1f4_cdfile_type layout. The data and text fields of the record will match the data and text operating contexts.

See struct x1f4_cdfile_type.

file is assumed opened.

Apart from installing the new operating methods (and their contexts), the function only resets the file state (internal buffers, etc).

The function returns 0 for success, one of the defined error codes for failure.

See File Library Errors.