You can store things for later! drizzle> select
libtcc("#include <string.h>\n#include <stdlib.h>\nint
foo(char* s) { char *a= malloc(1000); return
snprintf(s, 100, \"%p\", a); }") as RESULT;
+-----------+
| RESULT |
+-----------+
| 0x199c610 |
+-----------+
1 row in set (0 sec)
drizzle> select libtcc("#include
<string.h>\n#include <stdlib.h>\nint foo(char* s) {
char *a= 0x199c610; strcpy(a, \"Hello World!\");
strcpy(s,\"done\"); return strlen(s); }") as result;
+--------+
| result |
+--------+
| done |
+--------+
1 row in set (0.01 sec)
drizzle> select libtcc("#include
<string.h>\n#include <stdlib.h>\nint foo(char* s) {
char *a= 0x199c610; strcpy(s, a); return
strlen(s); }") as result;
+--------------+
| result |
+--------------+
| Hello World! |
+--------------+
1 …
[Read more]