diff --git a/C_Binding/Makefile b/C_Binding/Makefile new file mode 100644 index 0000000..87980fb --- /dev/null +++ b/C_Binding/Makefile @@ -0,0 +1,9 @@ + +all: single_function.o single_subroutine.o + +single_function.o: single_function.c Makefile + gcc -Wall -g -c $< + +single_subroutine.o: single_subroutine.c Makefile + gcc -Wall -g -c $< + diff --git a/C_Binding/README.md b/C_Binding/README.md new file mode 100644 index 0000000..13614b3 --- /dev/null +++ b/C_Binding/README.md @@ -0,0 +1,6 @@ + + +`Sat Feb 11 15:46:25 UTC 2023` + +Il serait temps de s'y mettre. + diff --git a/C_Binding/single_function.c b/C_Binding/single_function.c new file mode 100644 index 0000000..e86525c --- /dev/null +++ b/C_Binding/single_function.c @@ -0,0 +1,10 @@ +#include + + +long tth_getpid(int option) +{ + +fprintf(stderr, ">>> %s ( %d )\n", __func__, option); + +return 42L; +} \ No newline at end of file diff --git a/C_Binding/single_subroutine.c b/C_Binding/single_subroutine.c new file mode 100644 index 0000000..9e52d71 --- /dev/null +++ b/C_Binding/single_subroutine.c @@ -0,0 +1,9 @@ +#include + +void tth_dumpmem(int option, void *ptr) +{ + +fprintf(stderr, ">>> %s ( %d %p )\n", __func__, option, ptr); + +/* It's a subroutine so NO return */ +}