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

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

?? printf-stdarg.c

?? Tornado的源代碼資源包
?? C
字號:
/*	Copyright 2001, 2002 Georges Menie (www.menie.org)	stdarg version contributed by Christian Ettinger    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU Lesser General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU Lesser General Public License for more details.    You should have received a copy of the GNU Lesser General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//*	putchar is the only external dependency for this file,	if you have a working putchar, leave it commented out.	If not, uncomment the define below and	replace outbyte(c) by your own function call.#define putchar(c) outbyte(c)*/#include <stdarg.h>static void printchar(char **str, int c){	extern int putchar(int c);		if (str) {		**str = c;		++(*str);	}	else (void)putchar(c);}#define PAD_RIGHT 1#define PAD_ZERO 2static int prints(char **out, const char *string, int width, int pad){	register int pc = 0, padchar = ' ';	if (width > 0) {		register int len = 0;		register const char *ptr;		for (ptr = string; *ptr; ++ptr) ++len;		if (len >= width) width = 0;		else width -= len;		if (pad & PAD_ZERO) padchar = '0';	}	if (!(pad & PAD_RIGHT)) {		for ( ; width > 0; --width) {			printchar (out, padchar);			++pc;		}	}	for ( ; *string ; ++string) {		printchar (out, *string);		++pc;	}	for ( ; width > 0; --width) {		printchar (out, padchar);		++pc;	}	return pc;}/* the following should be enough for 32 bit int */#define PRINT_BUF_LEN 12static int printi(char **out, int i, int b, int sg, int width, int pad, int letbase){	char print_buf[PRINT_BUF_LEN];	register char *s;	register int t, neg = 0, pc = 0;	register unsigned int u = i;	if (i == 0) {		print_buf[0] = '0';		print_buf[1] = '\0';		return prints (out, print_buf, width, pad);	}	if (sg && b == 10 && i < 0) {		neg = 1;		u = -i;	}	s = print_buf + PRINT_BUF_LEN-1;	*s = '\0';	while (u) {		t = u % b;		if( t >= 10 )			t += letbase - '0' - 10;		*--s = t + '0';		u /= b;	}	if (neg) {		if( width && (pad & PAD_ZERO) ) {			printchar (out, '-');			++pc;			--width;		}		else {			*--s = '-';		}	}	return pc + prints (out, s, width, pad);}static int print(char **out, const char *format, va_list args ){	register int width, pad;	register int pc = 0;	char scr[2];	for (; *format != 0; ++format) {		if (*format == '%') {			++format;			width = pad = 0;			if (*format == '\0') break;			if (*format == '%') goto out;			if (*format == '-') {				++format;				pad = PAD_RIGHT;			}			while (*format == '0') {				++format;				pad |= PAD_ZERO;			}			for ( ; *format >= '0' && *format <= '9'; ++format) {				width *= 10;				width += *format - '0';			}			if( *format == 's' ) {				register char *s = (char *)va_arg( args, int );				pc += prints (out, s?s:"(null)", width, pad);				continue;			}			if( *format == 'd' ) {				pc += printi (out, va_arg( args, int ), 10, 1, width, pad, 'a');				continue;			}			if( *format == 'x' ) {				pc += printi (out, va_arg( args, int ), 16, 0, width, pad, 'a');				continue;			}			if( *format == 'X' ) {				pc += printi (out, va_arg( args, int ), 16, 0, width, pad, 'A');				continue;			}			if( *format == 'u' ) {				pc += printi (out, va_arg( args, int ), 10, 0, width, pad, 'a');				continue;			}			if( *format == 'c' ) {				/* char are converted to int then pushed on the stack */				scr[0] = (char)va_arg( args, int );				scr[1] = '\0';				pc += prints (out, scr, width, pad);				continue;			}		}		else {		out:			printchar (out, *format);			++pc;		}	}	if (out) **out = '\0';	va_end( args );	return pc;}int printf(const char *format, ...){        va_list args;                va_start( args, format );        return print( 0, format, args );}int sprintf(char *out, const char *format, ...){        va_list args;                va_start( args, format );        return print( &out, format, args );}#ifdef TEST_PRINTFint main(void){	char *ptr = "Hello world!";	char *np = 0;	int i = 5;	unsigned int bs = sizeof(int)*8;	int mi;	char buf[80];	mi = (1 << (bs-1)) + 1;	printf("%s\n", ptr);	printf("printf test\n");	printf("%s is null pointer\n", np);	printf("%d = 5\n", i);	printf("%d = - max int\n", mi);	printf("char %c = 'a'\n", 'a');	printf("hex %x = ff\n", 0xff);	printf("hex %02x = 00\n", 0);	printf("signed %d = unsigned %u = hex %x\n", -3, -3, -3);	printf("%d %s(s)%", 0, "message");	printf("\n");	printf("%d %s(s) with %%\n", 0, "message");	sprintf(buf, "justif: \"%-10s\"\n", "left"); printf("%s", buf);	sprintf(buf, "justif: \"%10s\"\n", "right"); printf("%s", buf);	sprintf(buf, " 3: %04d zero padded\n", 3); printf("%s", buf);	sprintf(buf, " 3: %-4d left justif.\n", 3); printf("%s", buf);	sprintf(buf, " 3: %4d right justif.\n", 3); printf("%s", buf);	sprintf(buf, "-3: %04d zero padded\n", -3); printf("%s", buf);	sprintf(buf, "-3: %-4d left justif.\n", -3); printf("%s", buf);	sprintf(buf, "-3: %4d right justif.\n", -3); printf("%s", buf);	return 0;}/* * if you compile this file with *   gcc -Wall $(YOUR_C_OPTIONS) -DTEST_PRINTF -c printf.c * you will get a normal warning: *   printf.c:214: warning: spurious trailing `%' in format * this line is testing an invalid % at the end of the format string. * * this should display (on 32bit int machine) : * * Hello world! * printf test * (null) is null pointer * 5 = 5 * -2147483647 = - max int * char a = 'a' * hex ff = ff * hex 00 = 00 * signed -3 = unsigned 4294967293 = hex fffffffd * 0 message(s) * 0 message(s) with % * justif: "left      " * justif: "     right" *  3: 0003 zero padded *  3: 3    left justif. *  3:    3 right justif. * -3: -003 zero padded * -3: -3   left justif. * -3:   -3 right justif. */#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
2024国产精品| 欧美曰成人黄网| 香蕉成人啪国产精品视频综合网 | 粉嫩高潮美女一区二区三区| 一区二区三区在线免费播放| 欧美成人精品福利| 91麻豆精品一区二区三区| 精品粉嫩超白一线天av| 久久99精品久久久| 一二三区精品视频| 欧美激情资源网| 日韩视频在线你懂得| 色欧美日韩亚洲| 成人av电影在线网| 国产一区二区三区综合| 婷婷综合另类小说色区| 综合自拍亚洲综合图不卡区| 久久亚洲一区二区三区四区| 欧美日韩国产一级| www.亚洲色图.com| 石原莉奈一区二区三区在线观看| 欧美成人一区二区三区| 日本 国产 欧美色综合| 久久综合999| 色先锋资源久久综合| 肉色丝袜一区二区| 欧美激情一区二区三区四区| 成人免费福利片| 亚洲一区二区欧美激情| 日韩欧美国产一二三区| 高清国产一区二区| 午夜精品久久一牛影视| 欧美xxxxx裸体时装秀| 成av人片一区二区| 日韩在线一二三区| 精品美女被调教视频大全网站| 在线精品视频免费观看| 亚洲精品网站在线观看| 国产精品情趣视频| 99re热视频这里只精品| 中日韩免费视频中文字幕| 香蕉乱码成人久久天堂爱免费| 日韩一区二区高清| 中文字幕欧美国产| 国产精品自拍三区| 国产精品久久影院| 日韩理论片在线| 一区二区三区四区在线| 久久精品国产在热久久| 波多野结衣一区二区三区 | 亚洲h在线观看| 五月综合激情婷婷六月色窝| 精品久久人人做人人爰| 欧美日韩国产片| 欧美特级限制片免费在线观看| 粉嫩蜜臀av国产精品网站| 国产一区二区看久久| 免费观看91视频大全| 亚洲欧美日韩在线| 一区二区三区四区中文字幕| 国产精品久久久久久久久图文区 | 日本道免费精品一区二区三区| 国产a精品视频| 成人一区在线看| 91天堂素人约啪| 欧美性感一区二区三区| 日韩三级视频在线看| 久久网站热最新地址| 国产精品久久久久久久久免费桃花 | 91精品国产乱| 精品乱码亚洲一区二区不卡| 国产视频亚洲色图| 亚洲精品高清在线观看| 图片区日韩欧美亚洲| 国产精品一级在线| 成人综合婷婷国产精品久久| 日本丶国产丶欧美色综合| 精品日韩成人av| 国产精品成人免费精品自在线观看 | 成人av动漫网站| 在线亚洲欧美专区二区| 欧美xxxxx裸体时装秀| 中文字幕免费一区| 日本三级亚洲精品| 国产精品一二三四| 欧美亚洲动漫精品| 久久综合一区二区| 国产精品99久| 91香蕉国产在线观看软件| 日本电影欧美片| 精品美女被调教视频大全网站| 欧美国产日韩a欧美在线观看| 亚洲精品视频一区| 六月婷婷色综合| 欧美在线影院一区二区| 精品日韩欧美在线| 亚洲地区一二三色| 亚洲h动漫在线| 成人精品高清在线| 精品国产91九色蝌蚪| 国产精品毛片a∨一区二区三区| 午夜成人免费视频| 国产不卡视频一区二区三区| 欧美精品vⅰdeose4hd| 久久久精品中文字幕麻豆发布| 亚洲激情男女视频| 欧美一区二区三区在线| 国产人成亚洲第一网站在线播放| 亚洲免费高清视频在线| 波多野结衣一区二区三区| 91精品国产欧美一区二区| 国产精品福利一区二区| 久久精品国产亚洲一区二区三区| 99久久综合狠狠综合久久| 日韩亚洲国产中文字幕欧美| 日韩一级黄色大片| 午夜国产不卡在线观看视频| 99久久er热在这里只有精品66| 久久亚洲私人国产精品va媚药| 午夜免费久久看| 欧美少妇bbb| 亚洲蜜臀av乱码久久精品| av一区二区不卡| 国产精品亚洲专一区二区三区| 91国模大尺度私拍在线视频| 成人激情小说乱人伦| jvid福利写真一区二区三区| 欧美美女直播网站| 亚洲在线一区二区三区| 91丨porny丨国产| 另类小说图片综合网| 首页国产欧美久久| 亚洲综合在线五月| 丁香亚洲综合激情啪啪综合| 日韩精品中文字幕一区| 一级精品视频在线观看宜春院| 天天av天天翘天天综合网| 欧美综合亚洲图片综合区| 美女网站色91| 蜜臀91精品一区二区三区| 久草这里只有精品视频| 国产精品国产a级| 99国产精品一区| 亚洲综合免费观看高清在线观看| 高清在线观看日韩| 亚洲激情五月婷婷| 91久久人澡人人添人人爽欧美| 五月激情综合婷婷| 国产丝袜欧美中文另类| 色综合天天做天天爱| 国产尤物一区二区| 亚洲免费资源在线播放| 日韩午夜激情视频| 91亚洲精品一区二区乱码| 亚洲不卡在线观看| 久久亚洲精精品中文字幕早川悠里| 色综合天天视频在线观看| 奇米一区二区三区av| 亚洲免费av观看| 日本一区二区三区国色天香| 欧美老肥妇做.爰bbww视频| 国产成人亚洲综合色影视| 免费观看30秒视频久久| 亚洲高清免费一级二级三级| 国产婷婷一区二区| 精品国产91久久久久久久妲己 | 国产精品人人做人人爽人人添| 日韩久久久精品| 欧美三级日韩在线| 欧美日韩久久不卡| xnxx国产精品| 国产精品亚洲一区二区三区妖精| 中文字幕在线一区| 日本高清视频一区二区| 另类小说一区二区三区| 欧美激情一区二区三区在线| 波多野结衣一区二区三区| 亚洲男人的天堂在线观看| 一本大道久久a久久精二百| 免费成人av在线播放| 久久久欧美精品sm网站| 91在线观看地址| 久久久久久夜精品精品免费| 亚洲精品一区二区三区蜜桃下载| 国产精品灌醉下药二区| 91免费视频网址| 三级欧美韩日大片在线看| 欧美激情中文不卡| 91影院在线观看| 欧美久久久影院| 国产欧美一区视频| 日本黄色一区二区| 国产精品538一区二区在线| 亚洲婷婷在线视频| 久久亚洲一级片| 色嗨嗨av一区二区三区| 国产主播一区二区三区| 亚洲视频中文字幕| 久久综合一区二区| 91精品国产美女浴室洗澡无遮挡|