FileHint

.c

Use caution

C 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 -Wpedantic to catch UB-adjacent patterns early.

Common mistakes

  • Mismatched malloc / free creates leaks or double-frees. Use valgrind during dev.
  • Missing NUL terminators after strcpy / sprintf without bounds checking is a perennial source of CVEs.

Related extensions

References