📄 mt_efs.h
字号:
/*****************************************************************************
** File Name: *
** Author: *
** Date: 2007/05/02 *
** Copyright: 2007 MTONE, Inc. All Rights Reserved. *
** Description: *
******************************************************************************
** Important Edit History *
** --------------------------------------------------------------------------*
** DATE NAME DESCRIPTION *
** 2007/05/02 Create *
*****************************************************************************/
#ifndef _MT_EFS_H_
#define _MT_EFS_H_
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef _WIN32
#include <direct.h>
#include <fcntl.h>
#include <io.h>
#include <stdio.h>
#else
#include "efs.h"
#include "mt_ffs.h"
#endif
#ifdef _WIN32
#define SIZE_T size_t
#else
#define SIZE_T unsigned int
#endif
#define EFS_MAX_PATH 256
#ifdef _WIN32
typedef FILE MTEFS_FILE;
#else
typedef SCI_FILE MTEFS_FILE;
#endif
#ifndef _WIN32
//#define MTEFS_FILE MTFFS_FILE
#endif
#define MT_SEEK_SET 0 // beginning of file
#define MT_SEEK_CUR 1 // current position of file pointer
#define MT_SEEK_END 2 // end of file
MTEFS_FILE *MTEFS_fopen( const char *filename, const char *mode );
int MTEFS_fclose( MTEFS_FILE *stream );
SIZE_T MTEFS_fread( void *buffer, SIZE_T size, SIZE_T count, MTEFS_FILE *stream );
SIZE_T MTEFS_fwrite( const void *buffer, SIZE_T size, SIZE_T count, MTEFS_FILE *stream );
int MTEFS_fseek( MTEFS_FILE *stream, long offset, int origin );
unsigned long MTEFS_ftell( MTEFS_FILE *stream );
int MTEFS_feof( MTEFS_FILE *stream );
char *MTEFS_fgets( char *string, int n, MTEFS_FILE *stream );
int MTEFS_fputs( const char *string, MTEFS_FILE *stream );
int MTEFS_remove( const char *filename );
int MTEFS_length( const char *filename );
#ifdef __cplusplus
}
#endif
#endif // _MT_EFS_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -