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

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

?? wce_getopt.c

?? Package of C library extensions for Windows CE operating system. It is a supplement to C library ava
?? C
字號:
/*
 * $Id$
 *
 * Copyright (c) 1987, 1993, 1994
 * The Regents of the University of California.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 */
#if 0
static char sccsid[] = "@(#)getopt.c	8.3 (Berkeley) 4/27/95";
__RCSID("$NetBSD: getopt.c,v 1.26 2003/08/07 16:43:40 agc Exp $");
#endif

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

/*
 * Declared in <unistd.h>
 */
char *optarg;       /* argument associated with option */
int opterr = 1;     /* if error message should be printed */
int optind = 1;		/* index into parent argv vector */
int optopt;         /* character checked for validity */

int optreset;       /* reset getopt */

#define	BADCH	(int)'?'
#define	BADARG	(int)':'
#define	EMSG	""

/*******************************************************************************
* wceex_getopt - function is a command-line parser
*
* Description:
*
*   The parameters argc and argv are the argument count and argument array as
*   passed to main(). The argument optstring is a string of recognised option
*   characters. If a character is followed by a colon, the option takes an argument.
*
*   The variable optind is the index of the next element of the argv[] vector to be
*   processed. It is initialised to 1 by the system, and getopt() updates it when it
*   finishes with each element of argv[].
*
*   NOTE: Implementation of the getopt() function was grabbed from NetBSD
*         operating system sources. See copyright note in the file header.
*
* Return:
*
*   Returns the next option character specified on the command line.
*   A colon (:) is returned if getopt() detects a missing argument and
*   the first character of optstring was a colon (:).
*   A question mark (?) is returned if getopt() encounters an option
*   character not in optstring or detects a missing argument and the first
*   character of optstring was not a colon (:).
*   Otherwise getopt() returns -1 when all command line options are parsed. 
* 
* Reference:
*
*   IEEE 1003.1, 2004 Edition
*
*******************************************************************************/

int wceex_getopt(int argc, char * const argv[], const char *optstring)
{
	static char *place = EMSG;		/* option letter processing */
	char *oli;				/* option letter list index */

	if (optreset || *place == 0) {		/* update scanning pointer */
		optreset = 0;
		place = argv[optind];
		if (optind >= argc || *place++ != '-') {
			/* Argument is absent or is not an option */
			place = EMSG;
			return (-1);
		}
		optopt = *place++;
		if (optopt == '-' && *place == 0) {
			/* "--" => end of options */
			++optind;
			place = EMSG;
			return (-1);
		}
		if (optopt == 0) {
			/* Solitary '-', treat as a '-' option
			   if the program (eg su) is looking for it. */
			place = EMSG;
			if (strchr(optstring, '-') == NULL)
				return -1;
			optopt = '-';
		}
	} else
		optopt = *place++;

	/* See if option letter is one the caller wanted... */
	if (optopt == ':' || (oli = strchr(optstring, optopt)) == NULL) {
		if (*place == 0)
			++optind;
		if (opterr && *optstring != ':')
			(void)fprintf(stderr,
                                      "unknown option -- %c\n", optopt);
		return (BADCH);
	}

	/* Does this option need an argument? */
	if (oli[1] != ':') {
		/* don't need argument */
		optarg = NULL;
		if (*place == 0)
			++optind;
	} else {
		/* Option-argument is either the rest of this argument or the
		   entire next argument. */
		if (*place)
			optarg = place;
		else if (argc > ++optind)
			optarg = argv[optind];
		else {
			/* option-argument absent */
			place = EMSG;
			if (*optstring == ':')
				return (BADARG);
			if (opterr)
				(void)fprintf(stderr,
                                        "option requires an argument -- %c\n",
                                        optopt);
			return (BADCH);
		}
		place = EMSG;
		++optind;
	}
	return (optopt);			/* return option letter */
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区免费视频| 国产综合色在线视频区| 色婷婷久久综合| 亚洲国产精品成人综合色在线婷婷| 九九热在线视频观看这里只有精品| 6080日韩午夜伦伦午夜伦| 亚洲v中文字幕| 欧美日韩黄视频| 日产国产高清一区二区三区| 6080午夜不卡| 久久福利资源站| 日韩一区二区三区在线视频| 久久精品国产久精国产| 日韩一区二区三区免费观看| 日韩电影一区二区三区| 欧美一激情一区二区三区| 久99久精品视频免费观看| 久久久美女毛片| 成人久久久精品乱码一区二区三区| 国产视频一区二区在线观看| 成人v精品蜜桃久久一区| 亚洲男人天堂一区| 欧洲日韩一区二区三区| 午夜欧美一区二区三区在线播放| 欧美日韩国产区一| 麻豆精品视频在线观看| 久久色视频免费观看| 国产成+人+日韩+欧美+亚洲| 综合在线观看色| 欧美色老头old∨ideo| 日本不卡中文字幕| 久久综合狠狠综合久久综合88| 懂色一区二区三区免费观看| 亚洲欧洲性图库| 欧美日韩www| 狠狠色综合色综合网络| 国产精品三级久久久久三级| 99在线热播精品免费| 亚洲1区2区3区4区| 精品久久久久久无| 成年人午夜久久久| 亚洲第一在线综合网站| 日韩精品一区二区三区视频在线观看| 国产美女在线观看一区| √…a在线天堂一区| 欧美日韩激情在线| 国产精品综合久久| 亚洲男人天堂av网| 精品日韩一区二区| 91香蕉国产在线观看软件| 香港成人在线视频| 久久久久久电影| 色婷婷久久一区二区三区麻豆| 免费成人小视频| 中文幕一区二区三区久久蜜桃| 欧美四级电影在线观看| 韩国精品在线观看| 亚洲欧美一区二区三区久本道91| 在线播放日韩导航| 成人理论电影网| 日韩激情一二三区| 国产精品女同互慰在线看| 欧美日韩dvd在线观看| 国产+成+人+亚洲欧洲自线| 一区二区三区欧美在线观看| 欧美一级在线观看| 99riav一区二区三区| 久久丁香综合五月国产三级网站| 国产精品久久久久久亚洲伦 | 日本黄色一区二区| 免费亚洲电影在线| 中文字幕一区二区三区乱码在线| 欧美精品久久天天躁| 波多野结衣中文字幕一区二区三区| 亚洲成人综合网站| 欧美激情一区二区在线| 91精品国产高清一区二区三区蜜臀| 成人国产精品视频| 蜜桃av一区二区| 亚洲激情男女视频| 久久久99久久精品欧美| 欧美日韩aaaaa| 91视频在线观看| 国产一区美女在线| 舔着乳尖日韩一区| 亚洲伦理在线免费看| 日本一区二区成人在线| 日韩一区二区视频| 欧美伊人精品成人久久综合97| 风间由美中文字幕在线看视频国产欧美| 日韩高清电影一区| 一区二区激情小说| 国产精品水嫩水嫩| 久久久欧美精品sm网站| 日韩一区二区在线观看| 欧美日韩一区二区电影| 91亚洲精品一区二区乱码| 国产精品自拍av| 精品一区二区国语对白| 日韩专区欧美专区| 亚洲精品免费播放| 国产精品国产三级国产普通话蜜臀 | 成人免费在线视频| 国产色综合久久| 26uuu亚洲| 日韩一二三四区| 在线播放/欧美激情| 色哟哟一区二区在线观看 | 蜜臀av一区二区在线免费观看| 亚洲一区二区在线免费观看视频| 中文字幕亚洲综合久久菠萝蜜| 精品av久久707| 日韩精品一区二区三区老鸭窝| 欧美日韩在线精品一区二区三区激情| 9人人澡人人爽人人精品| 国产91精品精华液一区二区三区 | 26uuu亚洲| 日韩精品一区二区三区视频在线观看| 欧美久久高跟鞋激| 欧美日本在线一区| 欧美日韩你懂的| 欧美自拍丝袜亚洲| 在线看一区二区| 欧美亚洲另类激情小说| 欧洲国产伦久久久久久久| 一本色道久久综合亚洲aⅴ蜜桃| 成人av电影在线| 丁香六月久久综合狠狠色| 成人黄色免费短视频| 成人自拍视频在线| a亚洲天堂av| 91社区在线播放| 色综合久久综合中文综合网| 91伊人久久大香线蕉| 欧美中文字幕不卡| 欧美丝袜丝交足nylons图片| 欧美午夜电影在线播放| 欧美日韩1区2区| 日韩欧美中文字幕精品| 欧美xxxxxxxxx| 国产亚洲美州欧州综合国| 日本一区二区久久| 中文字幕一区二区三区不卡在线| 亚洲欧洲精品成人久久奇米网| 亚洲欧洲精品天堂一级| 亚洲综合成人在线视频| 午夜精品久久久久久久99樱桃| 天天综合日日夜夜精品| 美女视频免费一区| 国产乱子伦一区二区三区国色天香| 国产成人在线色| 91原创在线视频| 欧美三区在线观看| 欧美不卡一区二区三区四区| 久久久久久久久久久久久久久99 | 五月天激情综合| 久久av老司机精品网站导航| 国产一区二区影院| 成人性生交大片免费看在线播放| 99久久99久久综合| 欧美麻豆精品久久久久久| 亚洲精品一区二区三区蜜桃下载 | 国产欧美精品国产国产专区 | 国产精品美女久久福利网站| 亚洲同性gay激情无套| 亚洲风情在线资源站| 麻豆精品一区二区三区| 不卡视频一二三四| 欧美日韩日本视频| 久久久久国产精品人| 中文字幕日韩一区二区| 亚洲成av人在线观看| 激情综合色播五月| 99精品国产99久久久久久白柏 | 99久久国产综合精品麻豆| 欧美久久久久久久久中文字幕| 久久综合中文字幕| 亚洲免费观看在线视频| 日韩1区2区3区| 国产不卡在线播放| 欧美区在线观看| 欧美国产精品中文字幕| 香蕉久久夜色精品国产使用方法 | 精品免费一区二区三区| 国产精品久久久久aaaa樱花| 亚洲国产aⅴ成人精品无吗| 国产一区二区三区在线看麻豆| 91免费观看在线| 欧美大片免费久久精品三p| 一区视频在线播放| 久久丁香综合五月国产三级网站| jlzzjlzz亚洲日本少妇| 欧美精品一卡两卡| 国产精品嫩草影院av蜜臀| 三级成人在线视频| av欧美精品.com| 精品久久久久久久久久久久久久久久久| 中文字幕亚洲欧美在线不卡| 久久精品国产成人一区二区三区 | 亚洲男人的天堂在线aⅴ视频|