From 11d1cfd7deb861696d019582367ef3b2464c5013 Mon Sep 17 00:00:00 2001 From: tTh Date: Sat, 11 Feb 2023 17:05:58 +0100 Subject: [PATCH] en avant comme avant ! --- C_Binding/Makefile | 9 +++++++++ C_Binding/README.md | 6 ++++++ C_Binding/single_function.c | 10 ++++++++++ C_Binding/single_subroutine.c | 9 +++++++++ 4 files changed, 34 insertions(+) create mode 100644 C_Binding/Makefile create mode 100644 C_Binding/README.md create mode 100644 C_Binding/single_function.c create mode 100644 C_Binding/single_subroutine.c 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 */ +}