Skip to content

mpalomera/c-scaffold

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

C file struture for C projects

USAGE

bash c-scaffold.sh <project-name> <module-name> 

Example

bash c-scaffold.sh nyancat rainbow

Happy Coding!

/Users/matiskay/lncc/courses/data-structures/scripts/nyancat
├── Makefile
├── README.mkd
├── main.c
├── minunit.h
├── rainbow.c
├── rainbow.h
└── test_rainbow.c

0 directories, 7 files
make test
rm *.out || exit 0
rm: *.out: No such file or directory
gcc -c rainbow.c
gcc -c test_rainbow.c
gcc -o test_rainbow rainbow.o test_rainbow.o
./test_rainbow
-_-_-_-_-_-_-_,------,      o
_-_-_-_-_-_-_-|   /\_/\
-_-_-_-_-_-_-~|__( ^ .^)  +     +
_-_-_-_-_-_-_-  ""  ""
 ✓ ALL TESTS PASSED
 Tests run: 1

Links

About

C file structure for C programs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%