keil c51 中函数名大小写问题
来源:互联网 发布:淘宝网化装品 编辑:程序博客网 时间:2024/04/29 21:28
发现keil 似乎不能区分大小写
void Sprintf(ulong I,ulong D,uchar B0,uchar B1){ uchar i,N=0; uchar num[16],copyed[16]; uchar *p=num; sprintf(copyed,"%lu",D); sprintf(num,"%lu",I); while(*p != '\0') { p++; N++; } if(D != 0) { num[N]='.'; N++; while( B0 != 0) { B0--; num[N]='0'; N++; } num[N]='\0'; strcpy(num+N,copyed); } N=0; p=num; while(*p != '\0') { p++; N++; } for(i=N;i<15;i++) { num[i]=' '; } num[i]='\0'; if(B1 == 1) printf("%s",num);}
可以在gcc下编译通过并正确显示,但在keil c51 中不能正确显示,修改函数名后就可以了。
0 0
- keil c51 中函数名大小写问题
- 关于 keil c51 头文件中变量名声明问题
- Keil C51中printf()函数的说明
- keil c51 可重如问题
- keil 编译器中 C51 代码关于sprintf函数char参数的小问题
- Keil C51中变量和函数的绝对地址定位问题
- Keil C51中变量和函数的绝对地址定位问题
- Keil C51中变量和函数的绝对地址定位问题:
- [Keil-C51]在Keil C51中使用sizeof()的一点问题记录
- php中函数和类名大小写问题
- 在Keil C51函数中加入ASM代码
- 在Keil C51函数中加入ASM代码
- Keil C51 uv2中sprintf打印char的问题
- Keil C51 uv2中sprintf打印char的问题
- Keil C51 实现 printf 函数
- thinkphp 中数据表名的大小写问题
- 关于keil c51里面的 printf 函数
- Keil C51 中的函数指针使用注意事项
- android-Supporting Swipe-to-Refresh,Adding Swipe-to-Refresh To Your App,
- hdoj 4419 Colourful Rectangle 【线段树 + 扫描线】
- 高精度乘法
- Visual C++内存泄露检测—VLD工具使用说明
- iOS 高性能图片圆角
- keil c51 中函数名大小写问题
- 蓝桥杯 历届试题 兰顿蚂蚁
- BootStrap main 方法都做了什么?
- springboot+velocityLayout和velocity-tools
- [NOIP基础数论]快速幂
- 360浏览器强制使用急速模式
- java.sql.SQLException: General error, message from server: "Field 'ID' doesn't have a default value
- Windows平台网站图片服务器架构的演进
- poj1182 食物链(经典并查集)