C (language)
# Resources
# Useful stuff
#todo too many!
- C tricks
- Dynamic memory allocation in C
- Memory management in C
- C declarations
- Pointers in C
- struct in C
- Strings in C
typedefin C- C macros
- Advanced C syntax
- Makefile
- C debugging, compilation and building
- Making libraries
- C linting and formatting
- Static variables
- File IO in C
- Error handling in C
- C and C++ lingo
# Useful tools
# Random notes
NULL pointer in GNU compiler (gcc) is guaranteed to be equal to 0 (see
this page). Also NULL can be put into free(). malloc(0) may return a unique pointer or NULL.
You can include stddef.h instead of stdlib.h for NULL and size_t.
You can declare an enum inside of a struct. It will act the same as if it was defined in the outer scope.
# #todo
staticandinlinefunctions (see this)- automatic header generation, maybe with
makeheaders - how does the assembly look when one struct is returned from a function and assigned to another struct?