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

📄 csplit.h

📁 FIDO网超大文件传输的C语言源程序,仅仅只是为了学习和交流
💻 H
字号:
/*
 * CSplit.h
 * 08/31/93  Fred Cole     original
 * 09/05/93  Fac           update for CRC routines
 * 09/14/93  Fac           update for link list routines
 */

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifndef __STDC__
#include "portable.h"
#endif

#define VERSION  "1.40"

enum { FALSE = 0, TRUE };
enum { NOERR = 0, HELP, MEMORY, INFILE, OUTFILE, PROCESS, READ, WRITE };

#define FNAME    12   /* 8.3 filespec character count */
#define LINES    90   /* default source lines per section */    /* TS */
#define LENGTH   75   /* default source chars per line */
#define PATHMAX  80   /* maximum path spec length */
#define TABDEF    4   /* default spaces per tab char */
#define TABMAX   16   /* maximum spaces per tab char */
#define TABMIN    2   /* minimum spaces per tab char */
#define SEP_AR   " >>>>>>>>>>"
#define SEP_BF   "Begin file "
#define SEP_BP   "Begin part "
#define SEP_EF   "End file "
#define SEP_EP   "End part "
#define SEP_ID   ">>>>>>>>>> CSplit: "

typedef struct _slst
{
  char srcfile[FNAME+1];          /* no path support */
  struct _slst *next;
} SLST;

void cleanup(void);
void disp_help(void);
int  extract(char *);
char *my_fgets(char *, int, FILE *, int);
unsigned short updcrc( unsigned short, unsigned char *, unsigned int );
void initcrctab(void);
SLST *addlist(char *);
void freelist(void);
int  initlist(int, char **, int);

⌨️ 快捷键说明

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