No.36148 作者:菜鸟特 邮件:cainiaote@sina.com ID:13422 登陆:1次 文章数:6篇 最后登陆IP:61.171.16.218 最后登陆:2003/7/4 19:12:34 注册:2003/7/4 10:14:26 财富:115 发帖时间:2003/7/4 10:17:49 发贴者IP:61.171.21.136 标题:菜鸟特:[讨论]Keil,那位大侠用过vsprintf函数?好像有问题呀! 摘要:No.36148[讨论]Keil,那位大侠用过vsprintf函数?好像有问题呀! 我的程序如下,在BC3。0下测试是好的,可是在KEIL下好像有问题。我的程序下载在板子上 也有问题,用keil来debug仿真也看出来有问题。请各位高手解答! 谢谢! #include <stdio.h> #include <stdarg.h> //#define _EMU_ // bc3.0 build use #ifdef _EMU_ #define code const #define xdata #endif void FormatData( char* pszGetData,const char* pszFormat,... ) { va_list ap; va_start( ap, pszFormat ); vsprintf( pszGetData, pszFormat, ap ); va_end( ap ); } void main( void ) { code unsigned char bTestData[] = { 0x00,0x11,0x22,0x33,0x44,0x55 }; unsigned int nIntData; code char* ......
>>返回讨论的主题
|