~sircmpwn/cstyle

1a5ff4dc46bdee6cfc5765259aaa946d2ec2e8d8 — Drew DeVault 7 months ago 5c11c2d master
Add example of if..else brace style
1 files changed, 21 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +21 -0
@@ 231,6 231,14 @@ if (cond) {
    /* ... */
}

if (cond) {
    /* ... */
} else if (other cond) {
    /* ... */
} else {
    /* ... */
}

for (...) {
    /* ... */
}


@@ 252,6 260,19 @@ if (cond)
    /* ... */
}

if (cond)
{
    /* ... */
}
else if (other cond)
{
    /* ... */
}
else
{
    /* ... */
}

for (...)
{
    /* ... */