|
Assuming I understand you correctly, you can include a header and then be sure to include your implementation .c file in your compilation |
|||
|
|
Little example: |
|||
|
|
yes that's it. |
|||
|
|
[quote name="Thomas Fritz"]Little example: |
|||
|
|
You need three files |
|||
|
|
Just put the sum.c and the sum.h in the same directory than the main.c for now. |
|||
|
|
An awesome website for advanced programming is [url]http://stackoverflow.com[/url] |
|||
|
|
Sure you can, |
|||
|
|
10
Answers
|
|
10
Answers
|
|
4
Answers
|
|
27
Answers
|
|
27
Answers
|
|
0
Answers
|
|
2
Answers
|
|
0
Answers
|
|
0
Answers
|
|
0
Answers
|
| The package manager is giving me this message, what do i do to correct it? | Internet |
| Is there a Linux app to reset password? | Applications |
| How can I transfer video from mobile to pc linux? | Audio/Video |
| Why app launcher doesn´t open? | Applications |
| How can I open VLC recording automatically in second workspace when I reboot my System? | Systems Management |
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board