~foura/biobuf.link

5a6f0b68de68245706262a8122da729075170b99 — james palmer 2 months ago 652d193 front
add c notes
2 files changed, 26 insertions(+), 0 deletions(-)

A db/c
M db/index
A db/c => db/c +25 -0
@@ 0,0 1,25 @@
| desc notes on the c programming language
| date 2020-09-10

* style
- never use #include in headers, never use #ifdef header guards.
- use /* c style comments */, not // c++ style comments
- seperate typedefs from structs and enums,
  it makes it easier to search, and makes structs that reference
  themselves cleaner

# typedef struct Node Node;
  struct Node {
      int val;
      Node left, right;
  }

- capitalized type names.
- lowercase function names.
- write the type at the start of functions that operate on that type.
  it makes code easier to search.

# typedef struct List List;
  void listappend(List *l, int v);



M db/index => db/index +1 -0
@@ 8,6 8,7 @@
  systen.

> plan9.html plan 9 notes
> c.html c notes

* external
> https://mastodon.sdf.org/@foura mastodon