en avant comme avant !

This commit is contained in:
tTh 2023-02-11 17:05:58 +01:00
parent 6c9f562c13
commit 11d1cfd7de
4 changed files with 34 additions and 0 deletions

9
C_Binding/Makefile Normal file
View 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
View File

@ -0,0 +1,6 @@
`Sat Feb 11 15:46:25 UTC 2023`
Il serait temps de s'y mettre.

View File

@ -0,0 +1,10 @@
#include <stdio.h>
long tth_getpid(int option)
{
fprintf(stderr, ">>> %s ( %d )\n", __func__, option);
return 42L;
}

View 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 */
}