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

📄 innconfval.c

📁 早期freebsd实现
💻 C
字号:
/*  $Revision: 1.3 $****  Get a config value from INN.*/#include "configdata.h"#include <stdio.h>#include <sys/types.h>#include "libinn.h"#include "clibrary.h"#include "macros.h"intmain(ac, av)    int			ac;    char		*av[];{    register char	*p;    register char	*val;    register BOOL	File;    register int	i;    /* Parse JCL. */    File = FALSE;    while ((i = getopt(ac, av, "f")) != EOF)	switch (i) {	default:	    (void)fprintf(stderr, "Usage error.\n");	    exit(1);	    /* NOTREACHED */	case 'f':	    File = TRUE;	    break;	}    ac -= optind;    av += optind;    /* Loop over parameters, each a config value. */    while ((p = *av++) != NULL) {	val = File ? GetFileConfigValue(p) : GetConfigValue(p);	if (val == NULL)	    (void)fprintf(stderr, "No value for %s parameter\n", p);	else	    (void)printf("%s\n", val);    }    exit(0);    /* NOTREACHED */}

⌨️ 快捷键说明

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