C is fun

Repeating all the default stuff when starting over a new project is boring and waste of time.
While doing some researches I needed to make a lot of little C programs. In order to fullfill the DRY (Don’t Repeat Yourself) Principle, I did a quick-n-dirty C Generator.

It is easy to use and has a small featureset:

  • Comment Block with @ Docstrings
  • Main stub
  • Default header includes
  • Additional common unix header includes
  • Additional generating a header file with include guard macro

Get your cidea here: https://bitbucket.org/evilc00kie/cidea.git


./cidea coffeemaker

Will generate a coffeemaker.c  which will look like this:

 * @file:   coffeemaker.c                                
 * @brief:  Does some awesome stuff                      
 * @date:   30/11/2017                                   
 * @author: Friend of 3vilc00kie <friendOf@evilcookie.de>
 * @license:    LGPL                                     
#include <stdio.h>                                       
#include <stdlib.h>                                      
int main(int argc, char* argv[])                         
    return EXIT_SUCCESS;                                 

Hits: 279