Skip to content

About

The C Code Examples.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

C-Examples

This repository contains practical C code examples for learning, testing, and quick reference.

Features

  • 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

Quick Run

Windows:

./run.bat <folder path> <compile option>

Linux:

./run.sh <folder path> <compile option>

Example:

./run.bat "Hello World"

Scripts

For some examples, you need to download the source code. Enter the command below:

python scripts/get_source.py

or,

python3 scripts/get_source.py

Required Python Modules

requests

Contribute

If you want to contribute, open a pull request here: https://github.com/cd-cm-pro/C-Examples/pulls

LICENSE

https://github.com/cd-cm-pro/C-Examples/blob/main/LICENSE

About

The C Code Examples.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages