#include #include #include "config.h" #define LEN(X) (sizeof(X)/sizeof(*X)) typedef struct { char filename[64]; char title[128]; time_t creat, mod; char link[CLEN]; } Document; typedef struct { const char name[16]; void (*export)(Document **, int); Document **usedby; int nusedby; } Plugin; int cat(const char *, FILE *);