This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: coding style: type* variable or type *varible


On Sep 13, 2005, at 12:23 PM, Rafael Espíndola wrote:
I have seen both in gcc. I have found that "type* variable" is
preferred in C++ code but I haven't found any guidelines for C code.

If you ask gcc, you find:


mrs $ grep 'int\* ' *.c | wc -l
       4
mrs $ grep 'int \*' *.c | wc -l
     369

pretty clear to me.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]