snipfile.h

来自「c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及」· C头文件 代码 · 共 38 行

H
38
字号
/* +++Date last modified: 05-Jul-1997 */

/*
**  Header file for portable file functions
*/

#ifndef SNIPFILE__H
#define SNIPFILE__H

#include <stdio.h>
#include "sniptype.h"

#define flushall() fflush(NULL)

long   flength(char *fname);                          /* Ansiflen.C     */
FILE * cant(char *fname, char *fmode);                /* Ferrorf.C      */
int    fcompare(const char *fnam1, const char *fnam2);/* Fcompare.C     */
long   fcopy(char *dest, char *source);               /* Fcopy.C        */
long   ffsearch(FILE *fp, const char *pattern,
             const size_t size, int N);               /* Srchfile.C     */
long   rfsearch(FILE *fp, const char *pattern,
             const size_t size, int N);               /* Srchfile.C     */
void   show_text_file(char *txt);                     /* Textmod.C      */
int    file_copy(char *from, char *to);               /* Wb_Fcopy.C     */
int    fdcopy(int fdfrom, int fdto);                  /* Wb_Fcopy.C     */
int    file_append(char *from, char *to);             /* Wb_Fapnd.C     */

Boolean_T exists(char *name);                         /* Existsx.C      */
char     *dexists(char *name, char *envar);           /* Existsx.C      */
char     *pexists(char *name);                        /* Existsx.C      */
char     *gexists(char *name, char *envar);           /* Existsx.C      */
FILE     *fopenp(char *name, char *mode);             /* Fopenx.C       */
FILE     *fopend(char *name, char *mode, char *envar);/* Fopenx.C       */
FILE     *fopeng(char *name, char *mode, char *envar);/* Fopenx.C       */


#endif /* SNIPFILE__H */

⌨️ 快捷键说明

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