函数的名字大小写是否为同一函数?
不是,大小写不同,函数不同。
环境:
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:): MY_DEBUG(Big:): MY_DEBUG(big:):
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();
}