diff options
author | mongo <andmarti@gmail.com> | 2017-05-02 16:47:01 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2017-05-02 16:47:01 -0300 |
commit | 0a2dab8ac8bbfb0f1dc534ef4fe1b821bc2f43f6 (patch) | |
tree | 00ab2d62dad6740d839056224abb995c432995d1 /files/Module/module.c | |
parent | 55d286a3f408e274866327ed29b5a930dbd10573 (diff) |
renamed files to examples
Diffstat (limited to 'files/Module/module.c')
-rw-r--r-- | files/Module/module.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/files/Module/module.c b/files/Module/module.c deleted file mode 100644 index ba97fe7..0000000 --- a/files/Module/module.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - R.Pollak - Trigger example in C - to compile - gcc -shared -fPIC -o module.so -g -Wall module.c - - on the trigger the ent structure is passed and whether the trigger was on Write or on Read. Write trigger, when it was written to selected cells, - or Read from selected cells. -*/ - -#include <stdio.h> - -#include "sc.h" -#include "macros.h" -#include "utils/dictionary.h" -#include "utils/string.h" -#include "range.h" -#include "color.h" -#include "screen.h" -#include "undo.h" -#include "conf.h" -#include "cmds.h" -#include "trigger.h" - -extern char * query(char * ); - -int do_c_call(struct ent *p , int rw) { - FILE *fd = fopen("/tmp/modul.txt","a+"); - fprintf(fd,"%d %d %g %d\n",p->col,p->row,p->v,rw); - fclose(fd); - - return(0); -} |