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

📄 lfnames.h

📁 在DOS环境下支持长文件名的使用
💻 H
字号:
// listing 1, lfnames.h
#ifdef __cplusplus
extern "C" {
#endif
#define LFN_MAX_PATH 260
#define SFN_MAX_PATH 80
int lfn_api( const char *rootname );
unsigned GetShortPathName( const char *filename,
              const char *shortname, unsigned size );
unsigned GetLongPathName( const char *filename,
              const char *longname, unsigned size );
int lfn_mkdir( const char *path );
int lfn_rmdir( const char *path );
int lfn_chdir( const char *path );
int lfn_unlink( const char *path );
int lfn_rename( const char *oldname, const char *newname );
int lfn_access( const char *path, int amode );
int lfn_open( const char *path, int mode, int smode );
FILE *lfn_fopen( const char *filename, const char *mode );
int lfn_findfirst( const char *path, int attrib, struct lfn_find_t *finfo );
int lfn_findnext( struct lfn_find_t *finfo );
void lfn_findclose( struct lfn_find_t *finfo );

struct lfn_find_t
{
    char     attrib;            /* attribute byte for matched file */
    unsigned wr_time;           /* time of last write to file */
    unsigned wr_date;           /* date of last write to file */
    unsigned long size;         /* size of file */
    char     name[LFN_MAX_PATH]; /* asciiz name of matched file */
    int      findhandle;
};

#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

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