Arthur J. O'Dwyer wrote:
> On Sat, 20 Dec 2003, Richard Heathfield wrote:
>> Malcolm wrote:
>> >
>> > Use all lower case for [ANSI C] functions, and Capitalise For
>> > Platform-Specific.
>> >
>> > If you call something with caps, then your function name requires caps
>> > itself.
>>
>> Taken to its logical conclusion, this requires you to define your entry
>> point as Main() - and then it won't link.
>
> Only if your main function is Platform-Specific.
Or if it /calls/ something Platform-Specific, according to Malcolm.
<snip>
> FWIW, except for Malcolm's miscapitalization of the terms "ANSI C",
> I basically agree with his statement. I just don't think it really
> needed to be broadcast to the world, any more than it would be
> appropriate to start a new thread in alt.usage.english to say,
> "Start a new paragraph when there's a new speaker," or in comp.programming
> to point out that the worst-case running time of Quicksort is O(n^2).
> Those who care, already know.
Quite so. But since we're being so public about it at present, my own
preference is xyz_CamelCase for function names and parameter names in the
xyz library (or, perhaps, the library for which xyz is a suitable
contraction or abbreviation), SEPARATED_UPPER_CASE for type names and
macros, and whatever I feel like for local identifiers.
--
Richard Heathfield :
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ:
http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc:
http://users.powernet.co.uk/eton