Ive been trying to get my code organized through various ways and I've found across various programs that I use the same functions that I have created, over and over again.
Of course copying and pasting code is not recommended ( and I still do it, I'm trying to avoid it >_<! ), So is there a way to organize my functions into .c files and #include them like any normal headers.
For example, I want to do this
I dont want to be typing that out all the time!
Im using CodeBlocks at the moment!
One last question, what happens if I define a function and dont use it?
Im asking this because im not going to be using all the functions in the .c files
hmm Ive tried multiple things...Thanks for your posts though
What Im trying to do is make a bunch of header files to store my functions so that I can use them across multiple programs, HOWEVER, I want to also assign a name to the header files so i can say #include <test> ( or just "test.h" ) rather then having to give an entire file path.
Bahah! A great response TheIdeasMan, I like how youve lead me to the original document by Dennis Ritchie himself! This is very helpful and I think it will help me format my code in other ways aswell, your help is much appreciated