# C Programming Style in libwww

Libwww is written with a certain house style that almost certainly differs from what you are used to. However, we have our reasons for doing this - well not all of it but most of it! Anyway, the purpose of all W3C code is to be:

- Highly portable so that it works on any thinkable platform
- Consistent in style so that it is easy to read by other contributors
- Don't ever commit anything to CVS before having followed the libwww CVS commit policy

Please also have a look at the existing libwww source code - then some of the things below might make more sense. The style guide is divided into sections on

- C++ emulation in libwww
- Calling libwww from C++
- System and Language Features to Avoid
- Libwww Modules and Documentation
- PRIVATE and PUBLIC Macros
- Identifiers
- Function Declarations
- Function Definitions
- Function Body Layout