函数的名字大小写是否为同一函数?    

  不是,大小写不同,函数不同。 

环境:

gcc 版本 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Linux ubuntu 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux

root@ubuntu:/work/pc_apps/demo# gcc BGLT.c 
root@ubuntu:/work/pc_apps/demo# ./a.out 
        MY_DEBUG(BIG:6):                MY_DEBUG(Big:16):               MY_DEBUG(big:11):       
root@ubuntu:/work/pc_apps/demo# cat BGLT.c
#include
<stdio.h> #define MY_PRINTF(fmt, args...) fprintf(stderr,"\tMY_DEBUG(%s:%d):\t" fmt, __func__, __LINE__, ##args) void BIG() { MY_PRINTF(); } void big() { MY_PRINTF(); } void Big() { MY_PRINTF(); } void main() { BIG(); Big(); big(); }

 

相关文章:

  • 2022-12-23
  • 2021-06-19
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2021-06-01
  • 2022-01-08
  • 2021-09-15
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
相关资源
相似解决方案