.c
Use cautionC source code
C language source from 1972. Foundation of the Linux kernel, all major databases, and countless system programs.
MIME types
- text/x-c
- text/x-csrc
Category
code
What opens this file
- gcc / clang
- VS Code + C/C++ extension
- CLion
How to open by OS
Windows
- MSVC, MinGW, clang.
Mac
- clang.
Linux
- gcc, clang.
Ios
- Build remotely.
Android
- Android NDK.
Safety notes
- Buffer overflows and format-string bugs are classic C pitfalls. Never pass untrusted input directly as the format argument to
printf. - Lean on modern compilers with
-Wall -Wextra -Wpedanticto catch UB-adjacent patterns early.
Common mistakes
- Mismatched
malloc/freecreates leaks or double-frees. Use valgrind during dev. - Missing NUL terminators after
strcpy/sprintfwithout bounds checking is a perennial source of CVEs.