亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? getopt.c

?? 著名的TCPMP
?? C
?? 第 1 頁 / 共 3 頁
字號:
			/* +option or -option */
			fprintf (stderr,
				 _("%s: option `%c%s' doesn't allow an argument\n"),
				 argv[0], argv[optind - 1][0], pfound->name);
		    }

		  nextchar += strlen (nextchar);

		  optopt = pfound->val;
		  return '?';
		}
	    }
	  else if (pfound->has_arg == 1)
	    {
	      if (optind < argc)
		optarg = argv[optind++];
	      else
		{
		  if (opterr)
		    fprintf (stderr,
			   _("%s: option `%s' requires an argument\n"),
			   argv[0], argv[optind - 1]);
		  nextchar += strlen (nextchar);
		  optopt = pfound->val;
		  return optstring[0] == ':' ? ':' : '?';
		}
	    }
	  nextchar += strlen (nextchar);
	  if (longind != NULL)
	    *longind = option_index;
	  if (pfound->flag)
	    {
	      *(pfound->flag) = pfound->val;
	      return 0;
	    }
	  return pfound->val;
	}

      /* Can't find it as a long option.  If this is not getopt_long_only,
	 or the option starts with '--' or is not a valid short
	 option, then it's an error.
	 Otherwise interpret it as a short option.  */
      if (!long_only || argv[optind][1] == '-'
	  || my_index (optstring, *nextchar) == NULL)
	{
	  if (opterr)
	    {
	      if (argv[optind][1] == '-')
		/* --option */
		fprintf (stderr, _("%s: unrecognized option `--%s'\n"),
			 argv[0], nextchar);
	      else
		/* +option or -option */
		fprintf (stderr, _("%s: unrecognized option `%c%s'\n"),
			 argv[0], argv[optind][0], nextchar);
	    }
	  nextchar = (char *) "";
	  optind++;
	  optopt = 0;
	  return '?';
	}
    }

  /* Look at and handle the next short option-character.  */

  {
    char c = *nextchar++;
    char *temp = my_index (optstring, c);

    /* Increment `optind' when we start to process its last character.  */
    if (*nextchar == '\0')
      ++optind;

    if (temp == NULL || c == ':')
      {
	if (opterr)
	  {
	    if (posixly_correct)
	      /* 1003.2 specifies the format of this message.  */
	      fprintf (stderr, _("%s: illegal option -- %c\n"),
		       argv[0], c);
	    else
	      fprintf (stderr, _("%s: invalid option -- %c\n"),
		       argv[0], c);
	  }
	optopt = c;
	return '?';
      }
    /* Convenience. Treat POSIX -W foo same as long option --foo */
    if (temp[0] == 'W' && temp[1] == ';')
      {
	char *nameend;
	const struct option *p;
	const struct option *pfound = NULL;
	int exact = 0;
	int ambig = 0;
	int indfound = 0;
	int option_index;

	/* This is an option that requires an argument.  */
	if (*nextchar != '\0')
	  {
	    optarg = nextchar;
	    /* If we end this ARGV-element by taking the rest as an arg,
	       we must advance to the next element now.  */
	    optind++;
	  }
	else if (optind == argc)
	  {
	    if (opterr)
	      {
		/* 1003.2 specifies the format of this message.  */
		fprintf (stderr, _("%s: option requires an argument -- %c\n"),
			 argv[0], c);
	      }
	    optopt = c;
	    if (optstring[0] == ':')
	      c = ':';
	    else
	      c = '?';
	    return c;
	  }
	else
	  /* We already incremented `optind' once;
	     increment it again when taking next ARGV-elt as argument.  */
	  optarg = argv[optind++];

	/* optarg is now the argument, see if it's in the
	   table of longopts.  */

	for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++)
	  /* Do nothing.  */ ;

	/* Test all long options for either exact match
	   or abbreviated matches.  */
	for (p = longopts, option_index = 0; p->name; p++, option_index++)
	  if (!strncmp (p->name, nextchar, nameend - nextchar))
	    {
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
		{
		  /* Exact match found.  */
		  pfound = p;
		  indfound = option_index;
		  exact = 1;
		  break;
		}
	      else if (pfound == NULL)
		{
		  /* First nonexact match found.  */
		  pfound = p;
		  indfound = option_index;
		}
	      else
		/* Second or later nonexact match found.  */
		ambig = 1;
	    }
	if (ambig && !exact)
	  {
	    if (opterr)
	      fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"),
		       argv[0], argv[optind]);
	    nextchar += strlen (nextchar);
	    optind++;
	    return '?';
	  }
	if (pfound != NULL)
	  {
	    option_index = indfound;
	    if (*nameend)
	      {
		/* Don't test has_arg with >, because some C compilers don't
		   allow it to be used on enums.  */
		if (pfound->has_arg)
		  optarg = nameend + 1;
		else
		  {
		    if (opterr)
		      fprintf (stderr, _("\
%s: option `-W %s' doesn't allow an argument\n"),
			       argv[0], pfound->name);

		    nextchar += strlen (nextchar);
		    return '?';
		  }
	      }
	    else if (pfound->has_arg == 1)
	      {
		if (optind < argc)
		  optarg = argv[optind++];
		else
		  {
		    if (opterr)
		      fprintf (stderr,
			       _("%s: option `%s' requires an argument\n"),
			       argv[0], argv[optind - 1]);
		    nextchar += strlen (nextchar);
		    return optstring[0] == ':' ? ':' : '?';
		  }
	      }
	    nextchar += strlen (nextchar);
	    if (longind != NULL)
	      *longind = option_index;
	    if (pfound->flag)
	      {
		*(pfound->flag) = pfound->val;
		return 0;
	      }
	    return pfound->val;
	  }
	  nextchar = NULL;
	  return 'W';	/* Let the application handle it.   */
      }
    if (temp[1] == ':')
      {
	if (temp[2] == ':')
	  {
	    /* This is an option that accepts an argument optionally.  */
	    if (*nextchar != '\0')
	      {
		optarg = nextchar;
		optind++;
	      }
	    else
	      optarg = NULL;
	    nextchar = NULL;
	  }
	else
	  {
	    /* This is an option that requires an argument.  */
	    if (*nextchar != '\0')
	      {
		optarg = nextchar;
		/* If we end this ARGV-element by taking the rest as an arg,
		   we must advance to the next element now.  */
		optind++;
	      }
	    else if (optind == argc)
	      {
		if (opterr)
		  {
		    /* 1003.2 specifies the format of this message.  */
		    fprintf (stderr,
			   _("%s: option requires an argument -- %c\n"),
			   argv[0], c);
		  }
		optopt = c;
		if (optstring[0] == ':')
		  c = ':';
		else
		  c = '?';
	      }
	    else
	      /* We already incremented `optind' once;
		 increment it again when taking next ARGV-elt as argument.  */
	      optarg = argv[optind++];
	    nextchar = NULL;
	  }
      }
    return c;
  }
}

int
getopt (argc, argv, optstring)
     int argc;
     char *const *argv;
     const char *optstring;
{
  return _getopt_internal (argc, argv, optstring,
			   (const struct option *) 0,
			   (int *) 0,
			   0);
}

#endif	/* Not ELIDE_CODE.  */

#ifdef TEST

/* Compile with -DTEST to make an executable for use in testing
   the above definition of `getopt'.  */

int
main (argc, argv)
     int argc;
     char **argv;
{
  int c;
  int digit_optind = 0;

  while (1)
    {
      int this_option_optind = optind ? optind : 1;

      c = getopt (argc, argv, "abc:d:0123456789");
      if (c == -1)
	break;

      switch (c)
	{
	case '0':
	case '1':
	case '2':
	case '3':
	case '4':
	case '5':
	case '6':
	case '7':
	case '8':
	case '9':
	  if (digit_optind != 0 && digit_optind != this_option_optind)
	    printf ("digits occur in two different argv-elements.\n");
	  digit_optind = this_option_optind;
	  printf ("option %c\n", c);
	  break;

	case 'a':
	  printf ("option a\n");
	  break;

	case 'b':
	  printf ("option b\n");
	  break;

	case 'c':
	  printf ("option c with value `%s'\n", optarg);
	  break;

	case '?':
	  break;

	default:
	  printf ("?? getopt returned character code 0%o ??\n", c);
	}
    }

  if (optind < argc)
    {
      printf ("non-option ARGV-elements: ");
      while (optind < argc)
	printf ("%s ", argv[optind++]);
      printf ("\n");
    }

  exit (0);
}

#endif /* TEST */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
尤物av一区二区| 亚洲免费观看高清完整版在线观看| 91影院在线免费观看| 国产盗摄视频一区二区三区| 国产精品一区二区在线观看不卡| 久草在线在线精品观看| 国产精品自在在线| jvid福利写真一区二区三区| 99久久国产综合精品色伊| 在线视频观看一区| 欧美精品在线一区二区三区| 欧美一级日韩免费不卡| 日韩免费高清av| 久久久精品人体av艺术| 国产精品情趣视频| 亚洲成人tv网| 国产精品自拍一区| 91热门视频在线观看| 在线精品视频一区二区| 欧美成人欧美edvon| 国产精品麻豆久久久| 亚洲综合久久av| 国产九九视频一区二区三区| 97精品久久久午夜一区二区三区| 欧美日韩中文字幕一区二区| 欧美xxx久久| 亚洲欧美综合网| 日本成人在线电影网| av电影天堂一区二区在线 | 亚洲特黄一级片| 亚洲不卡一区二区三区| 国产成人在线色| 91免费小视频| 精品久久国产97色综合| 一区二区三区高清不卡| 国产精品一区专区| 欧美美女bb生活片| 日韩美女久久久| 久久精品久久精品| 欧美在线观看一区| 亚洲国产高清aⅴ视频| 日韩国产在线一| 不卡视频免费播放| 日韩免费在线观看| 午夜精品在线视频一区| av午夜一区麻豆| 精品88久久久久88久久久| 亚洲一区二区精品久久av| 丰满白嫩尤物一区二区| 日韩三级在线观看| 亚洲一区二区三区美女| 国产成人aaaa| 久久久亚洲高清| 久久精品999| 正在播放一区二区| 亚洲自拍偷拍网站| 91在线国产福利| 国产精品美女久久久久久| 国内精品国产成人国产三级粉色| 欧美日韩国产一二三| 亚洲最快最全在线视频| 91尤物视频在线观看| 国产精品国产三级国产aⅴ中文 | 精品欧美一区二区在线观看 | 久久综合色一综合色88| 日韩av电影天堂| 欧美精品色综合| 日韩不卡在线观看日韩不卡视频| 在线观看日韩电影| 亚洲国产视频一区| 欧美无砖砖区免费| 亚洲国产美国国产综合一区二区| 在线中文字幕一区二区| 一二三区精品视频| 欧美日韩国产不卡| 日韩高清电影一区| 日韩欧美精品在线| 国产一区二区三区免费观看| 久久婷婷国产综合国色天香| 狠狠色丁香婷综合久久| 国产调教视频一区| 97精品久久久午夜一区二区三区| 亚洲欧洲日产国码二区| 日本高清无吗v一区| 亚洲第一狼人社区| 91麻豆精品91久久久久久清纯 | 国产欧美精品一区二区色综合 | 欧美人体做爰大胆视频| 日韩福利电影在线观看| 精品国产伦一区二区三区观看方式 | 日本不卡1234视频| 国产精品久久久久桃色tv| 一区二区三区毛片| 麻豆成人91精品二区三区| 日韩精品资源二区在线| 久久99精品国产麻豆婷婷| 国产亚洲一区二区在线观看| a4yy欧美一区二区三区| 亚洲一级二级三级| 精品区一区二区| 色综合天天性综合| 亚洲高清视频中文字幕| 欧美tk丨vk视频| 99riav久久精品riav| 日韩影视精彩在线| 国产日韩欧美精品综合| 欧洲视频一区二区| 97se亚洲国产综合在线| 亚欧色一区w666天堂| 欧美zozozo| 欧美亚洲高清一区| 国产一区二区三区不卡在线观看 | 床上的激情91.| 亚洲国产精品久久久久秋霞影院| 日韩免费性生活视频播放| 91尤物视频在线观看| 精品一区二区三区av| 综合色中文字幕| 精品福利一区二区三区| 欧美日产国产精品| av不卡一区二区三区| 毛片av中文字幕一区二区| 亚洲欧美激情一区二区| 欧美精品一区二区三区蜜桃| 欧美日精品一区视频| 波多野结衣精品在线| 免费精品视频在线| 亚洲电影第三页| 亚洲免费观看高清| 国产精品欧美一区喷水| 久久香蕉国产线看观看99| 欧美一二三区在线| 欧美日韩一区高清| 色婷婷精品大在线视频| eeuss鲁片一区二区三区在线观看| 麻豆成人91精品二区三区| 丝袜国产日韩另类美女| 亚洲欧美精品午睡沙发| 中文字幕一区二区三| 久久亚洲一区二区三区明星换脸| 5858s免费视频成人| 欧美日韩国产乱码电影| 一本久久精品一区二区| av一二三不卡影片| 成人aaaa免费全部观看| 丰满白嫩尤物一区二区| 国产老肥熟一区二区三区| 精品一区二区av| 久久精品国产在热久久| 免费在线成人网| 蜜臀av性久久久久蜜臀aⅴ四虎| 婷婷开心久久网| 首页欧美精品中文字幕| 午夜久久久久久久久久一区二区| 亚洲国产视频一区| 日韩不卡一区二区三区| 人禽交欧美网站| 免费在线欧美视频| 激情欧美日韩一区二区| 99在线精品免费| 91免费版在线看| 欧美性受极品xxxx喷水| 欧美精品久久一区| 精品日韩在线一区| 欧美激情中文字幕一区二区| 国产精品久久久久久久久久久免费看| 国产日韩三级在线| 亚洲精品高清视频在线观看| 亚洲综合在线免费观看| 午夜视频一区二区| 国产一区欧美日韩| 成人av电影免费观看| 欧美日韩免费一区二区三区| 日韩欧美国产综合| 中文字幕乱码亚洲精品一区| 亚洲女厕所小便bbb| 婷婷成人综合网| 国产美女精品一区二区三区| 成人性生交大片免费看视频在线 | 51午夜精品国产| 精品日韩在线观看| 亚洲欧洲三级电影| 婷婷一区二区三区| 国产成人精品免费| 欧美日韩国产免费一区二区| 国产人妖乱国产精品人妖| 一区二区三区精品在线观看| 精品一区二区免费| 91一区二区在线| 精品久久久久久最新网址| 日本一区二区综合亚洲| 日韩精品电影一区亚洲| 成人黄色免费短视频| 日韩欧美国产电影| 亚洲精品写真福利| 风流少妇一区二区| 欧美一区二区三级| 一区二区三区在线观看网站| 国产在线视频精品一区| 欧美日韩精品一区二区三区 |