This repository contains practical C code examples for learning, testing, and quick reference.
- Practical C examples for learning and quick reference
- Covers common topics such as arrays, strings, structs, pointers, math, files, threads, and networking
- Includes Windows-specific examples like window creation, message box, file dialog, process creation, COM, and keyboard input
- Provides utility examples for file I/O, string handling, type conversion, sorting, encryption, hashing, and compression
- Organized by topic so you can quickly find the example you need
- Simple run scripts for Windows and Linux
Windows:
./run.bat <folder path> <compile option>Linux:
./run.sh <folder path> <compile option>Example:
./run.bat "Hello World"For some examples, you need to download the source code. Enter the command below:
python scripts/get_source.pyor,
python3 scripts/get_source.pyrequests
If you want to contribute, open a pull request here: https://github.com/cd-cm-pro/C-Examples/pulls