Testing function and header files

This commit is contained in:
jackbenny committed 2015-11-01 04:50:25 +01:00
1 parent b86ee577dc
commit 84a1ce65f1
3 files changed
+17

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#include <stdio.h>
int plusone(int nr)
{
return ++nr;
}
+3
View File
@@ -0,0 +1,3 @@
/* Specification of mymath libs */
extern int plusone(int nr);
+7
View File
@@ -0,0 +1,7 @@
#include <stdio.h>
#include "mymath.h"
int main()
{
printf("Nr: %d\n", plusone(5));
}