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

📄 options.c

📁 speech signal process tools
💻 C
字号:
/* options.c: * * finds which option in an array an argument matches * * jim frost 10.03.89 * * Copyright 1989 Jim Frost.  See included file "copyright.h" for complete * copyright information. */#ifdef SCCS    static char *sccs_id = "@(#)options.c	1.1  10/13/90";#endif#include "copyright.h"#include "options.h"int optionNumber(arg, options)     char *arg;     char *options[];{ int a, b;  if ((*arg) != '-')    return(OPT_NOTOPT);  for (a= 0; options[a]; a++) {    if (!strncmp(arg + 1, options[a], strlen(arg) - 1)) {      for (b= a + 1; options[b]; b++)	if (!strncmp(arg + 1, options[b], strlen(arg) - 1))	  return(OPT_SHORTOPT);      return(a);    }  }  return(OPT_BADOPT);}

⌨️ 快捷键说明

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