add prompts and knowledge files

This commit is contained in:
loki5512344 2026-07-12 22:47:27 +02:00
parent 2e8d482940
commit 18c36419dc
Signed by: boba
GPG key ID: 253067914055423B
16 changed files with 516 additions and 0 deletions

View file

@ -0,0 +1,16 @@
C is a general-purpose programming language created by Dennis Ritchie at Bell Labs in 1972.
C is the lingua franca of operating systems and embedded systems programming.
The C standard library provides functions for input/output string manipulation memory allocation and more.
Pointer arithmetic is one of the most powerful and dangerous features of C.
Undefined behavior in C includes buffer overflows null pointer dereferences and signed integer overflow.
Memory safety is the programmer's responsibility in C unlike in managed languages.
The Linux kernel is written almost entirely in C with some assembly for low-level operations.
sizeof operator returns the size of a type or object in bytes.
malloc calloc realloc and free are the primary memory management functions.
String handling in C uses null-terminated character arrays with functions like strcpy strlen strcmp.
C99 C11 C17 and C23 are the major standards versions with varying levels of compiler support.
Pointers are variables that store memory addresses and allow direct memory manipulation.
Function pointers enable callbacks and dynamic dispatch in C.
The preprocessor handles directives like include define and ifdef before compilation.
Static analysis tools like lint cppcheck and coverity catch common C programming errors.
Buffer overflows are still the most common security vulnerability in C code after decades.