C11 Programming - bellbind/node-v4l2camera GitHub Wiki

sizeof operator

two patterns exists:

  • sizeof variable
  • sizeof (type)

Pointer assignment from void* value is not required cast

Foo* foo = malloc(sizeof (Foo));

bool

#include <stdbool.h>

bool value = true;

variable declaration may not be gathered in block head

From C99, Declaration statement can mixed another type of statements.

Declared variable in for loop is block scope in the for block.

⚠️ **GitHub.com Fallback** ⚠️