about summary refs log tree commit diff
path: root/usth/ICT2.1/labwork/2/construct.h
blob: 2d1c840c253d828f22ef8fab8b436f656aca8860 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * 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);