Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 10, 2019. It is now read-only.

mddelk/c-starter

Repository files navigation

c-starter

This a basic starter template for c code.

Installation

git clone --recurse-submodules https://github.com/jethrodaniel/c-starter.git your-project-name
cd your-project-name
./setup

It's that easy.

What it do

It sets you up with:

  • Either a Makefile or a Rakefile with basic project commands
  • Unit tests with Unity
  • Memory checking with valgrind
  • Tree output of the project

Additionally, if you choose to use Ruby in your build system:

Ruby Setup

You only need Ruby if you chose it during setup. If you don't have Ruby installed, rbenv is my recommended way to get Ruby - see their install section for more info.

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
# For bash
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
# Set up rbenv in your shell
~/.rbenv/bin/rbenv init
# Verify the install
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
# Install ruby-build, a rbenv plugin to easily install rubies
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
# Install our version of ruby
rbenv install 2.5.3

TODO

  • Add more example tests
  • Linters for both C and Ruby
  • More detailed README

About

A starting point for C projects ⚡

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /