⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fat32_filelib.h

📁 FAT32代码
💻 H
字号:
#include "..\define.h"
#include "FAT32_opts.h"

#ifndef __FILELIB_H__
#define __FILELIB_H__

//-----------------------------------------------------------------------------
// Defines
//-----------------------------------------------------------------------------
#ifndef SEEK_CUR
	#define SEEK_CUR    1
#endif
#ifndef SEEK_END
	#define SEEK_END    2
#endif
#ifndef SEEK_SET
	#define SEEK_SET    0
#endif

//-----------------------------------------------------------------------------
// Global Structures
//-----------------------------------------------------------------------------
typedef struct 
{
	UINT32	parentcluster;
	UINT32	startcluster;
	UINT32	bytenum;
	UINT32  currentBlock;
	UINT32  filelength;
	char	path[MAX_LONG_FILENAME];
	char	filename[MAX_LONG_FILENAME];
	BYTE	filebuf[512];
	BYTE	shortfilename[11];
	BOOL	inUse;
	BOOL	inRoot;

	BOOL	Read;
	BOOL	Write;
	BOOL	Append;
	BOOL	Binary;
	BOOL	Erase;
} FL_FILE;

//-----------------------------------------------------------------------------
// Prototypes
//-----------------------------------------------------------------------------

// External
void				fl_shutdown();
FL_FILE*			fl_fopen(char *path, char *modifiers);
void				fl_fclose(FL_FILE *file);
int					fl_fgetc(FL_FILE *file);
int					fl_fputc(int c, FL_FILE *file);
int					fl_fputs(const char * str, FL_FILE *file);
int					fl_fwrite(const void * data, int size, int count, FL_FILE *file );
int					fl_fread(FL_FILE *file, BYTE * buffer, UINT32 count);
int					fl_fseek( FL_FILE *file , UINT32 offset , int origin );
int					fl_fgetpos(FL_FILE *file , UINT32 * position);
int					fl_remove( const char * filename );			

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -