Ftype - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Files

FType

Declaration:
WORD FType (const char * fileName , char * buf )
Category(ies):
Files
Description:
Return the file type (max five bytes) for a file as a zero terminated string.
Return FS_OK if successful. If error return FS_ERROR or FS_BAD_NAME
(from FOpen). FS_ERROR is also returned if the file is opened
successfully but the type field is invalid. Note that this will always fail if the
given file is already opened for WRITE mode.
Inputs:
fileName
buf
Outputs:
FS_OK
FS_ERROR or
FS_BAD_NAME
buf
Assumptions:
File must not be opened for WRITE mode.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
char buf[6];
FCreate("APPDATA", "DAT" );
if (FS_OK == FType("APPDATA", buf ))
Disp( buf );
/* Create succeeded, buf will contain "DAT" */
TI-89 / TI-92 Plus Developer Guide
— String pointer to the name of the file to open.
— Pointer to a buffer of at least five bytes in length.
— Successful.
— Error.
— If successful, contains the description field (max five
bytes including zero byte terminator).
Not for Distribution
577
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents