1
0
Fork 0
cp/usth/ICT2.1/labwork/2/construct.h

18 lines
393 B
C

/*
* Lisp construct header.
* This is free and unencumbered software released into the public domain.
*/
typedef struct list construct;
struct list {
void *car;
construct *cdr;
};
construct *cons(void *, construct *);
void *car(construct *);
construct *cdr(construct *);
size_t length(construct *);
void *nth(construct *, size_t);
construct *insert(void *, construct *, size_t);