en avant comme avant !
This commit is contained in:
parent
6c9f562c13
commit
11d1cfd7de
9
C_Binding/Makefile
Normal file
9
C_Binding/Makefile
Normal file
@ -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 $<
|
||||
|
6
C_Binding/README.md
Normal file
6
C_Binding/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
`Sat Feb 11 15:46:25 UTC 2023`
|
||||
|
||||
Il serait temps de s'y mettre.
|
||||
|
10
C_Binding/single_function.c
Normal file
10
C_Binding/single_function.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
long tth_getpid(int option)
|
||||
{
|
||||
|
||||
fprintf(stderr, ">>> %s ( %d )\n", __func__, option);
|
||||
|
||||
return 42L;
|
||||
}
|
9
C_Binding/single_subroutine.c
Normal file
9
C_Binding/single_subroutine.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void tth_dumpmem(int option, void *ptr)
|
||||
{
|
||||
|
||||
fprintf(stderr, ">>> %s ( %d %p )\n", __func__, option, ptr);
|
||||
|
||||
/* It's a subroutine so NO return */
|
||||
}
|
Loading…
Reference in New Issue
Block a user