G
Guest
Guest
嗨,
任何人都可以帮助我解释代码?
代码:
廉政varfunc(字符*缓冲带,廉政身份证,...)
(
va_list标签;
va_start(标签,身份证);如果(编号== 0)
(
= 0,结果= 0字符一;廉政arg1;
字符* arg2;
字符arg3;arg1 = va_arg(标签中,INT); / / 27(1Bh)在廉政地址= 0x1B00
arg2 = va_arg(标签,烧焦*);
arg3 = va_arg(标签,字符);arg1 = arg1 0x02; / / arg1 = 0x0008???而(arg2 [我] ='\ 0')/ / arg2 [] =(0)????
(
结果= arg2 [一];
一 ;
)
arg3 = arg3 * 0x02; / / arg3 = 0???)
其他的
(
= 0,结果= 0;字符的I / /静态变量字符* arg1;
字符* arg2;
字符arg3;arg1 = va_arg(标签,烧焦*);
arg2 = va_arg(标签,烧焦*);
arg3 = va_arg(标签,字符);
*丁咯= '1';arg1 =“01”;
arg2 =“9876”;
arg3 = 100;而(arg1 [我] ='\ 0')
(
结果= arg1 [一];
一 ;
)
= 0;
而(arg2 [我] ='\ 0')
(
结果= arg2 [一];
一 ;
)
arg3 = arg3 * 0x02; / / arg3 = 0x06????
)
)无效来电(无效)
(
字符tmp_buffer [10];varfunc(tmp_buffer,0,4,“测试代码”,2);
varfunc(tmp_buffer,1,“测试”,“守则”,3);
)
任何人都可以帮助我解释代码?
代码:
廉政varfunc(字符*缓冲带,廉政身份证,...)
(
va_list标签;
va_start(标签,身份证);如果(编号== 0)
(
= 0,结果= 0字符一;廉政arg1;
字符* arg2;
字符arg3;arg1 = va_arg(标签中,INT); / / 27(1Bh)在廉政地址= 0x1B00
arg2 = va_arg(标签,烧焦*);
arg3 = va_arg(标签,字符);arg1 = arg1 0x02; / / arg1 = 0x0008???而(arg2 [我] ='\ 0')/ / arg2 [] =(0)????
(
结果= arg2 [一];
一 ;
)
arg3 = arg3 * 0x02; / / arg3 = 0???)
其他的
(
= 0,结果= 0;字符的I / /静态变量字符* arg1;
字符* arg2;
字符arg3;arg1 = va_arg(标签,烧焦*);
arg2 = va_arg(标签,烧焦*);
arg3 = va_arg(标签,字符);
*丁咯= '1';arg1 =“01”;
arg2 =“9876”;
arg3 = 100;而(arg1 [我] ='\ 0')
(
结果= arg1 [一];
一 ;
)
= 0;
而(arg2 [我] ='\ 0')
(
结果= arg2 [一];
一 ;
)
arg3 = arg3 * 0x02; / / arg3 = 0x06????
)
)无效来电(无效)
(
字符tmp_buffer [10];varfunc(tmp_buffer,0,4,“测试代码”,2);
varfunc(tmp_buffer,1,“测试”,“守则”,3);
)