Please fix them.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
echo "\033[41mHello world!"
(println "\\033[41mHello world!")
(println {\033[41mHello world!})
/* compile with:
* $ gcc <filename> -fPIC -shared -o <libname>
* or
* $ tcc <filename> -shared -o <libname>
**/
#include <string.h>
#include <stdlib.h>
typedef struct mystruc
{
int number;
char *ptr;
} MyStruc;
MyStruc *foo3(char *ptr, int num)
{
MyStruc *astruc;
astruc = malloc( sizeof( MyStruc ) );
astruc->ptr = malloc( len( ptr ) + 1 );
strcpy( astruc->ptr, ptr );
astruc->number = num;
return astruc;
}
(import "mystruc.so" "foo3")
(setq 'astruc (foo3 "hello world" 123))
(get-string (get-integer (+ a struc 4))) ;; 4 = sizeof int in C
(get-integer astruc)