WStevens_sa
Member level 2
- Joined
- Jan 5, 2011
- Messages
- 47
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- South Africa
- Activity points
- 1,695
Hi guys. I know this is a stupid question.
I know this can be done in other languages. But I am not sure how to do it in C.
I would like to know if I can do the following. I would like to take all my functions from my test.c file and then put them into a function.c file. But they must still be able to be called from test.c. Basically to keep my code neat and readable.
I have tried adding a file to the project called function.c and then adding my functions to this file. I have then referenced the file using #include "function.c". But this does not work on compile as it cannot find the functions.
Is this possible in Mikro C Pro
I know this can be done in other languages. But I am not sure how to do it in C.
I would like to know if I can do the following. I would like to take all my functions from my test.c file and then put them into a function.c file. But they must still be able to be called from test.c. Basically to keep my code neat and readable.
I have tried adding a file to the project called function.c and then adding my functions to this file. I have then referenced the file using #include "function.c". But this does not work on compile as it cannot find the functions.
Is this possible in Mikro C Pro