8000 GitHub - falvarezb/c-template: template for my c projects
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

falvarezb/c-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C template

template for my C projects

Components

  • Main file: myfile.c

  • Header: myfile.h

  • Unit tests: myfile_test.c

The method main() in myfile.c is guarded by the macro FAB_MAIN so that it can be left out of the binary when running unit tests

Builder

To build and run the project and the tests, there is availbble:

  • VSCode tasks

  • Makefile

The following sections show how to use Makefile.

Unit tests

make unittest

Application

make myfile CPPFLAGS=-DFAB_MAIN

About

template for my c projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0