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

📄 html-unix.c

📁 将rft格式文件转换成html格式文件
💻 C
字号:
/* * html-unix.c -- UNIX rtftohtml wrapper * * Driver provides OpenOutputFile() and Basename() functions for the writer. */# include	<stdio.h># include	"rtf.h"# include	"rtf-unix.h"# include	"rtftohtml.h"static char *usage="rtftohtml [-V] [-i] [-G] [-T] [-o filename] [-P extension] file";intmain (argc, argv)int	argc;char	*argv[];{	/* install OS-specific callbacks into RTF library */	UnixSetProgPath (argv[0]);	RTFSetOpenLibFileProc (UnixOpenLibFile);	WriterInit ();	RTFInit ();	switch (do_main(argc,argv))	/* set up for output file */	{	case 1:			/* successful */		RTFRead ();		HTMLCleanup();		break;	case 0:			/* unsuccessful; die */		exit (1);	case -1:		/* unsuccessful; print usage message and die*/		RTFPanic ("Usage: %s", usage);	}	exit (0);}FILE *OpenOutputFile (name, mode, fileType)char	*name;char	*mode;int	fileType;	/* ignored */{	return (fopen (name, mode));}/* * Return pointer to basename part of pathname */# define	pathSep	'/'char *Basename (name)char	*name;{int	i, lsep;	for(i=0,lsep=0;name[i]!='\0';i++)	{		if(name[i]==pathSep)			lsep=i+1;	}	return (&name[lsep]);}

⌨️ 快捷键说明

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