Testing function and header files

This commit is contained in:
Jack-Benny Persson 2015-11-01 04:50:25 +01:00
parent b86ee577dc
commit 84a1ce65f1
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#include <stdio.h>
int plusone(int nr)
{
return ++nr;
}

View File

@ -0,0 +1,3 @@
/* Specification of mymath libs */
extern int plusone(int nr);

7
misc/my_math_lib/test.c Normal file
View File

@ -0,0 +1,7 @@
#include <stdio.h>
#include "mymath.h"
int main()
{
printf("Nr: %d\n", plusone(5));
}