C Project Template is a minimal template for starting new C projects. It provides a simple "Hello World" program, a compile-and-run script, and a VS Code dev container configuration to get you up and running quickly.
- Click Use this template on the GitHub repository page to create a new repository from this template, or clone it directly:
git clone https://github.com/Stephenson-Software/c-project-template.git - Ensure you have
gccinstalled on your system. - Compile the project:
gcc projectTemplate.c -o projectTemplate.exe - Run the compiled program:
./projectTemplate.exe
- User Guide – Getting started and common scenarios
- Commands Reference – Build and run commands
- Configuration Guide – Project configuration options
Please fill out a bug report here.
Linux / macOS:
gcc projectTemplate.c -o projectTemplate.exe
./projectTemplate.exeWindows (with MinGW or similar):
gcc projectTemplate.c -o projectTemplate.exe
projectTemplate.exeIf you see Hello World! printed to the console, the build was successful.
A VS Code dev container is provided for development.
- Install Docker Desktop and VS Code.
- Install the Dev Containers extension.
- Open the repository in VS Code.
- When prompted, click Reopen in Container (or run the command Dev Containers: Reopen in Container).
Use the provided cr.sh script to compile and run in one step:
./cr.sh| Name | Main Contributions |
|---|---|
| Daniel McCoy Stephenson | Creator and maintainer |
This project is licensed under the Stephenson Software Non-Commercial License (Stephenson-NC).
See the LICENSE file for full details.
This project is in active development as a template for new C projects.