NULL definition problem on 64 bit system
问题 I'm running on RHEL 5.1 64 bit platfrom using gcc 4.1.2. I have a utility function: void str_concat(char *buff, int buffSize, ...); which concats char * passed in variadic list(...), while last argument should be NULL, to designate end of the arguments. On 64 bit system NULL is 8 bytes. Now to the problem. My application includes directly/indirectly 2 stddef.h files. First one is /usr/include/linux/stddef.h which defines NULL as following: #undef NULL #if defined(__cplusplus) #define NULL 0