Testing function and header files
This commit is contained in:
parent
b86ee577dc
commit
84a1ce65f1
7
misc/my_math_lib/mymath.c
Normal file
7
misc/my_math_lib/mymath.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int plusone(int nr)
|
||||
{
|
||||
return ++nr;
|
||||
}
|
||||
|
3
misc/my_math_lib/mymath.h
Normal file
3
misc/my_math_lib/mymath.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* Specification of mymath libs */
|
||||
|
||||
extern int plusone(int nr);
|
7
misc/my_math_lib/test.c
Normal file
7
misc/my_math_lib/test.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include "mymath.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Nr: %d\n", plusone(5));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user